Open Bug 884883 Opened 12 years ago Updated 3 years ago

preventDefault() on swipe event should prevent scrolling but doesn't

Categories

(Core :: DOM: Events, defect, P5)

21 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: epenner, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0 (Beta/Release) Build ID: 20130511120803 Steps to reproduce: I have a div element with a custom scrollbar. When the user has their cursor on top of this div and they perform a two-finger vertical swipe on their touchpad it changes the "top" css property of the box and it does a e.preventDefault(); on this event. Actual results: The "top" property of the box is changed but the page is scrolled as well. Expected results: The "top" property of the box should change and the window should not scroll.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Summary: e.preventDefault() in onmousewheel event when using two finger scroll on touchpad is jumpy → preventDefault() on swipe event should prevent scrolling but doesn't
Here is an example: http://www.dyn-web.com/code/scroll/vert.php Here is another: http://manos.malihu.gr/tuts/jquery_custom_scrollbar.html Here is another, though you'll probably have to shrink the browser window: http://dotroe.com/subpage.html I tested this on a macbook pro and have been able to easily reproduce the problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.