Closed Bug 862557 Opened 12 years ago Closed 9 years ago

Touch events not firing if mouse event set to preventDefault on the same element.

Categories

(Firefox :: Untriaged, defect)

20 Branch
x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 819102

People

(Reporter: enoble, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 Build ID: 20130409194949 Steps to reproduce: Here is a JS Fiddle which shows the problem: http://jsfiddle.net/859jT/31/ Working on Windows 8 machines with both mouse and touch support. I touch an element that has both mousedown and touchstart event listeners. The mousedown listener calls preventDefault on the event. Actual results: No touch events are received. Also, touching on a sibling element that doesn't call prevent default on its mouse events makes the first element now receive touch events. See JS Fiddle for more information. Expected results: Calling prevent default on a mouse event should have no bearing on touch events.
Hi Eric, I have tested this issue using your test case on latest Firefox release (43.0.4), latest Nightly build (46.0a1-20160112030227) and managed to reproduce it on both Windows 8.1 and Windows 10. Any touch event is seen as mouse only. Even if I performed your mentioned strange behavior, I still could not get a touch event. Verified the same test case on Chrome and it correctly works. Performed the tests on a Dell XPS 12 laptop 2 in 1 with both mouse and touch capabilities. Still I made some diggings in Bugzilla and I found an older issue that is addressing the same problem. Considering this I will mark this one as duplicate of the older one. You can follow the progress there. Thanks, Paul
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.