cubiq / iscroll

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

Iscroll stop work in all browsers #1107

Open EinarValholl opened 7 years ago

EinarValholl commented 7 years ago

Some time ago Iscroll stop working in all browsers. My options: this.myScroll = new IScroll('.bb-submenu', { mouseWheel: true, scrollbars: false, scrollX: true, scrollY: false }); When emulated devices at some resolution and reload page iscroll does not work, but it initialize. When i expand window width a few pixels, it starts work in Mozilla, IE, Edge, but in Chrome scroll block does not scroll smoothly, but with jumping

frankie-loves-jesus commented 7 years ago

You need to provide us with a test case like JSFiddle or CodePen. Please see CSS Tricks - Reduced Test Cases on why they "are the absolute, ... number one way to troubleshoot bugs."

AndreasKr commented 7 years ago

Dear all, i can confirm it (partially):

I am using jquery and jqm... But as I said: nothing has been changed, same apk.

Since it (in my case is android related = hybrid app), using JSFiddle might not a solution.

AndreasKr commented 7 years ago

Related to #1109?

uzlov commented 7 years ago

+1 iscroll stop work after update on Webview : 55.0.2883.91 quick patch https://github.com/cubiq/iscroll/issues/1109#issuecomment-267661774 can to used as "solution"

njam3 commented 7 years ago

Seems related to this: https://developers.google.com/web/updates/2017/01/scrolling-intervention

A quick fix was removing the first 2 if statements from the move function: https://github.com/cubiq/iscroll/blob/master/src/core.js#L177-L183

Removing the preventDefault seemed straightforward but I'm unsure of the impact of removing the initial return

Edit: Actually, this seems more related to #1109