darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Make locking mousewheel when there is nowhere to scroll optional #156

Closed darsain closed 9 years ago

darsain commented 9 years ago

Currently, when you mousewheel to the end of the frame Sly will keep preventing all mousewheel events and won't let you scroll the page.

Letting you scroll is a default behavior in browsers when there are nested scrollbars, but I always hated when fast scrolling a widget on a page, hit the end while in mid wheel turn and the whole page starts scrolling, making me navigate back to find the widget again.

That being said, my personal preference is irrelevant here, and Sly should adopt standard behavior with an option to disable.