[webkit-changes] [WebKit/WebKit] 8ac07e: Fix extra PointerEvents sometimes firing based on ...
lilyspiniolas
noreply at github.com
Tue Aug 20 18:26:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8ac07ed467eb20658b0335d847dce99dba51bc73
https://github.com/WebKit/WebKit/commit/8ac07ed467eb20658b0335d847dce99dba51bc73
Author: Lily Spiniolas <lily_spiniolas at apple.com>
Date: 2024-08-20 (Tue, 20 Aug 2024)
Changed paths:
M Source/WebCore/dom/ios/PointerEventIOS.cpp
M Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.mm
Log Message:
-----------
Fix extra PointerEvents sometimes firing based on altitudeAngle value
https://bugs.webkit.org/show_bug.cgi?id=278416
rdar://133721404
Reviewed by Abrar Rahman Protyasha.
A previous update to WKTouchEventsGestureRecognizer which changed the default value of altitudeAngle from 0 to pi/2
resulted in extra PointerEvents firing under certain circumstances. This change reverts the value back to 0, and
instead checks if a stylus or touch input is being used in PointerEventIOS, setting altitudeAngle to the angle
reported by the stylus hardware or the default value of pi/2, respectively.
* Source/WebCore/dom/ios/PointerEventIOS.cpp:
(WebCore::m_predictedEvents):
* Source/WebKit/UIProcess/ios/WKTouchEventsGestureRecognizer.mm:
(-[WKTouchEventsGestureRecognizer _recordTouches:type:coalescedTouches:predictedTouches:]):
Canonical link: https://commits.webkit.org/282540@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list