lukesnowden / FSVS

Full Screen Vertical Scroll
https://www.lukesnowden.co.uk/full-screen-vertical-scroll/
723 stars 145 forks source link

Add 'cancel' condition into bindMouseDrag() function #36

Closed rzakadragon closed 8 years ago

rzakadragon commented 8 years ago

Bug: when you drag the scroll bar of scrollable element it fired up slideUp() or slideDown() function.

Solution: make check of scrollable elements like in bindTouchSwipe() function. When mouseUp it will now check the 'cancel' value. When I was trying to solve this in mouseDown function thet was bug that makes slideUp() or slideDown() fires when you click on dropdown menu sometimes, so I made it this way it is now.