Tuesday, March 30, 2010

Chrome Touch

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...

No comments:

Related Posts Plugin for WordPress, Blogger...