blivesta / drawer

Flexible drawer menu using jQuery, iScroll and CSS.
http://git.blivesta.com/drawer
MIT License
620 stars 176 forks source link

Touch dragging is laggy on Chrome #37

Closed kcray closed 7 years ago

kcray commented 7 years ago

I am having issues of touch not working properly in the latest version of Chrome.

Using Chrome 56.0.2924.87 on Windows and my Samsung Galaxy S7. They are both experiencing the same issue.

Mouse scroll works fine but when touching the screen and dragging it is extremely laggy and if you attempt to swipe too quickly the menu will automatically close on you. Works fine in all other browsers.

Message is displayed in Chrome console when scrolling: Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

kcray commented 7 years ago

Here is Google's discussion on the recent change: https://developers.google.com/web/updates/2017/01/scrolling-intervention

kcray commented 7 years ago

Updating to the latest version of iScroll fixed this for me.

blivesta commented 7 years ago

Thanks for reporting