Closed Bug 735553 Opened 11 years ago Closed 11 years ago
Touchend events have a timestamp of zero
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20101123 SeaMonkey/2.0.11 Build ID: 20101123123540 Steps to reproduce: Test page: http://www.apprisant.com/tab/ts.html The test page prints timestamps from touchstart and touchend events in the box. Actual results: The timestamp appears to be in microseconds. A quick tap should be about 100 milliseconds. Expected results: Should be in milliseconds, as it is in other browsers and the spec. Asus Transformer TFT101 tablet, Android 4 (ICS), Firefox (11) Beta.
This is fixed in 13.0a1 (Native Fennec). Although, I am getting a timestamp of 0 for touchend events. I am going to repurpose this bug for that.
We're taking the same path with both TOUCH_MOVE events and TOUCH_END events in nsPresShell.cpp. We create copies of the events there because (for TOUCH_MOVE at least) we have to dispatch them multiple times (its possible some widget code could send two points lifted at the same time, and we might have to dispatch each of those separately. The Android backend will not currently do that). We are dropping information in the copy.
Assignee: nobody → wjohnston
Attachment #605836 - Flags: review?(bugs)
Summary: touch event timestamp is in microseconds, should be milliseconds → Touchend events have a timestamp of zero
Attachment #605836 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Version: Firefox 11 → Trunk
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.