cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

Fix the scroller for pointer events #1115

Closed mustaqahmed closed 7 years ago

mustaqahmed commented 7 years ago

Add a touch-action:none property to suppress browser action on the scroller so that the scroller receives all pointer events. See #1100.

mustaqahmed commented 7 years ago

As @RByers pointed out in the issue, forcing "touch-action:none" on all instances by adding this.scrollerStyle.touchAction = ''none" to all build/iscroll*.js is a better option. Please ignore this pull request in favor of that better fix.

sculove commented 7 years ago

Thank you for contribution I fixed it. you can use iScroll v5.2.0-snapshot!