vue-scrollmonitor icon indicating copy to clipboard operation
vue-scrollmonitor copied to clipboard

State changed event is not triggered on scroll-item

Open dducro opened this issue 7 years ago • 1 comments

@change="onUpdate" Is not called on the scroll-item, only on the container. I ended up not using this feature.

dducro avatar Jul 06 '18 22:07 dducro

This may be the reason why isinviewport classes weren't showing. I used the following to update the component, this also lead to the state classes to appear. :class="`${scrollState[i] && scrollState[i].isInViewport}`"

(scrollState is a data attribute updated by @change on the scroll-container)

PR #3 might have something to do with it..

dducro avatar Jul 06 '18 22:07 dducro