Wheel event not blocking scroll while smooth scrolling.
Reported by
dev.fra...@gmail.com,
Jul 5
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce the problem:
1. create wheel event handler
2. block event via e.preventDefault() after scroll some distance
(ie. if(window.scrollY >=300){e.preventDefault;})
3. smoothly scroll page with mousewheel
What is the expected behavior?
page scrolling should be stopped
What went wrong?
If scroll smoothly, page scrolling not stopping until you stop scrolling.
Did this work before? N/A
Chrome version: 67.0.3396.99 Channel: stable
OS Version: 10.0
Flash Version:
,
Jul 5
,
Jul 6
,
Jul 6
Thanks for filing the issue! @Reporter: Could you please share a sample test file/URL which helps us to triage the issue in a better way. Any further inputs from your end may be helpful.
,
Jul 12
I believe this is due to latching. You can only prevent default the scroll for the first wheel event when it is cancelable. Sahel, can you confirm this as you know better this area.
,
Jul 12
>I believe this is due to latching. You can only prevent default the scroll for the first wheel event when it is cancelable. Sahel, can you confirm this as you know better this area. More precisely it is because of async wheel events which was enabled at the same time with latching. Starting from M65 if the first wheel event in a scroll sequence is not prevented by default, the rest of the wheel events in the sequence are not cancel-able. This behavior is for improving wheel scrolling performance and is consistent with touchscreen scrolling. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by woxxom@gmail.com
, Jul 5