Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e949d0194653321706afb55d69bf3c4eb14c881a
      
https://github.com/WebKit/WebKit/commit/e949d0194653321706afb55d69bf3c4eb14c881a
  Author: Sebastian Krzyszkowiak <[email protected]>
  Date:   2026-03-19 (Thu, 19 Mar 2026)

  Changed paths:
    M Source/WebCore/dom/PointerEvent.h
    M Source/WebCore/dom/glib/PointerEventGLib.cpp
    M Source/WebCore/page/EventHandler.cpp
    M Source/WebCore/platform/PlatformTouchPoint.h

  Log Message:
  -----------
  [GTK][WPE] Unify touch Pointer Event handling and make it capture aware
https://bugs.webkit.org/show_bug.cgi?id=303134

Reviewed by Carlos Garcia Campos.

As it is right now, touch Pointer Events in WPE ignore the requirement to
implicitly capture the touch pointer given by the spec, while in GTK they force
the capture unconditionally. While GTK gives the right behavior by default, web
content should be able to control pointer capture with 
Element::setPointerCapture
and Element::releasePointerCapture API.

Unify the behavior between WPE and GTK ports and make it handle pointer 
captures.
Take advantage of the fact that we don't have to perform hit testing while
the pointer remains captured.

Also, remove the injection of pointercancel events in WPE port, as this behavior
doesn't seem to match anything described in the Pointer Events spec.

* Source/WebCore/dom/PointerEvent.h:
* Source/WebCore/dom/glib/PointerEventGLib.cpp:
(WebCore::PointerEvent::pointerIdForTouchPoint): Expose pointerId mapping
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::handleTouchEvent):
* Source/WebCore/platform/PlatformTouchPoint.h:

Canonical link: https://commits.webkit.org/309600@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to