autoscroll
A utility for auto-scroll when trigger location of event (i.e. mouse event) almost reach boundary.
Installation
- Install the latest version of autoscroll:
npm install --save autoscroll
- At this point you can import
autoscroll
:
;
Example
;; { thiscontent = content; } actions = { // Start auto scrolling autoScroll; } { // Stop auto scrolling if any autoScroll; } ; { return <div style= height: 500 overflow: 'auto' ref=thisrefContent onMouseMove=thisactionsonMouseMove onMouseOut=thisactionsonMouseOut > <div style= height: 1000 backgroundColor: 'yellow' /> </div> ; } ;