Closed
Bug 726608
Opened 12 years ago
Closed 8 years ago
(Win7 desktop) touch event handlers registered after delay do not fire until you ALT-TAB out and back into browser
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: brandon.wallace, Assigned: kats)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 Steps to reproduce: Windows 7 with a touch screen. Issue exists in Firefox6+, including Nightly (13.0a1 2012-02-12) setTimeout(function() { document.body.addEventListener("MozTouchDown", function(ev) { ... }); document.body.addEventListener("mousedown", function(ev) { ... }); }, 1000); Actual results: The MozTouch* event handler will not fire when I touch the the document. However, the mousedown event will still fire with the "fake" mouse event (mozInputSource===5). If I ALT-TAB out of the browser and ALT-TAB back in, then I the MozTouchDown event correctly fires as I touch the screen. You can repeat this by pressing CTRL-F5. Touch screen will not trigger the MozTouch* events. ALT-TAB, ALT-TAB, touch screen now triggers the MozTouch events. If I change the setTimeout to have a 0 delay, then everything works correctly. Here is a jsFiddle exhibiting the issue: http://fiddle.jshell.net/ScjXX/show/light/ (note that the bug only occurs if the code is not loaded within an iframe) Expected results: MozTouch events should fire without needing to switch window focus.
Updated•10 years ago
|
Blocks: win-touch-issues
Assignee | ||
Updated•8 years ago
|
Attachment #596691 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 1•8 years ago
|
||
MozTouch is no longer a thing, touchstart/touchend are the new standard events. The attached test case is a modified version of the original test case that uses these standard events, and it works as expected on a Windows nightly build with touch enabled.
Assignee: nobody → bugmail
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•