https://chrome.google.com/extensions/detail/ncegfehgjifmmpnjaihnjpbpddjjebme
http://www.w3schools.com/jsref/met_win_scrollby.asp
Register the mouse up/down/move/over... event. If mouse down and mouse move, then doing the drag. Calculate the moveX and moveY, then set the value to window.scrollBy().
Support glide effect, also using the window.scrollBy() function.
Also support the bounce effect, which implemented by document.body.style.top and document.body.style.backgroundPositionY...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment