[Webkit-unassigned] [Bug 140803] New: Touchmove Events suffer mutation with time

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 22 17:06:52 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=140803

            Bug ID: 140803
           Summary: Touchmove Events suffer mutation with time
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: iOS
                OS: iOS 8.0
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: miguel.camba at gmail.com

Created attachment 245186
  --> https://bugs.webkit.org/attachment.cgi?id=245186&action=review
console output

I've found while creating a mobile webpage that if I store touchmove events in an array to later on read them, by the time I do that the event does not have the pageX and pageY it had when it was fired.

To reproduce it:

1. Go to this jsbin (http://jsbin.com/koyobo/1) with mobile safari in an iOS emulator (I've seen this in a real device too) while remote debugging is enabled.
2. Perform some touchmove over the red div. The pageX of the first 5 events will be logged with console.log. After the 6th event there is a conditional that logs the pageX again, along with a distinctive text, and a debugger line just after that console.log
3. After you are stopped in the debugger, if you inspect e.touches[0].pageX of the event, you'll see that it has a different value that the one that was printed the previous line.

Somehow, if you store event for later inspection, the events are mutated. This very example works as expected in chrome and firefox. No clue about IE.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150123/1bd1ad3e/attachment-0002.html>


More information about the webkit-unassigned mailing list