jquery - How does google calendar make possible scrolling when mouse is outside of the container? -


as can see in following video when mouse outside of events container still scrolled out when mouse goes , bottom when mouse goes bottom.

i need achieve same in following demo. looks following. can see scrolling ugly.

please me. how achieve scrolling in google calendar demo calendar?

in both chrome , safari (tested chrome 43.0.2357.81 , safari 8.0.6), day , week views display events in div id "scrolltimedeventswk". inspecting scrolltimedeventswk element can see rectangular scrollbar native scrollbar, heavily styled using webkit pseudo-elements styling native scrollbars. see: https://www.webkit.org/blog/363/styling-scrollbars/

knowing this, changing vertical scroll position accomplished setting scrolltimedeventswk element's scrolltop. implement animated scroll google calendar's, interval can set on 'mousedown' decreases/increases scrolltop small amount until reaching top/bottom. interval can cleared on 'mouseup'.

here example of "smooth scroll" technique:
http://www.sitepoint.com/scroll-smoothly-javascript/
note in blog article, author developing code smooth scroll on click, such link scrolls top of page on click. technique, however, same.


Comments

Popular posts from this blog

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

node.js - Using Node without global install -

java - JavaScript + Thymeleaf - select onchange -