[Webkit-unassigned] [Bug 51258] New: TouchEvents does not support multi-touch on a page with multiple touch targets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 17 08:34:26 PST 2010


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

           Summary: TouchEvents does not support multi-touch on a page
                    with multiple touch targets
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.quirksmode.org/m/tests/drag2.html
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joth at chromium.org


The way EventHandler::handleTouchEvent currently works means that all touch points of a given type (press, move, release) will all be sent to a single target.
This does not work correctly with the page above, as each draggable square is its own div with its own event target. So, for e.g., using 2 fingers to move 2 divs requires each div receive its own ontouchmove events, containing the respective changedTouches.

Currently, the implementation only dispatches all of the move events to a single target:

3011        if (movedTouches->length() > 0) {
3012            Touch* changedTouch = movedTouches->item(0);  // <-- only looking up the first touch point's target
3014            touchEventTarget = changedTouch->target();
....
3026            touchEventTarget->dispatchEvent(moveEv.get(), ec);
3027            defaultPrevented |= moveEv->defaultPrevented();  // <-- dispatching all the move events to this single touch target
3028        }
3029    

ditto for touch start, end and cancel events.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list