-
Notifications
You must be signed in to change notification settings - Fork 6k
[cp:beta][web] Work around wrong pointerId in coalesced events in iOS Safari 18.2 (#56719) #56905
[cp:beta][web] Work around wrong pointerId in coalesced events in iOS Safari 18.2 (#56719) #56905
Conversation
… Safari 18.2 (flutter#56719) In iOS 18.2, Safari [added support](https://developer.apple.com/documentation/safari-release-notes/safari-18_2-release-notes#Web-API) for the [`getCoalescedEvents`](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/getCoalescedEvents) API. That being said, the API seems to be incomplete (or at least doesn't match other browsers' behavior). The coalesced events lack a [`pointerId`](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId) and [`target`](https://developer.mozilla.org/en-US/docs/Web/API/Event/target) properties. I'm not sure if this issue will be fixed in the stable release of iOS 18.2, so in the meantime, this PR implements a workaround to avoid this issue. Fixes flutter/flutter#158299 Fixes flutter/flutter#155987
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for cherry-picking!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any chance to get these changes merged soon? |
@mdebbar there are failing tests in
|
@christopherfujino I'm not sure how my web-only change could cause a failure for Mac. I rebased the PR and also trying an empty commit here to see if this failure is happening on the beta branch already. |
Can we merge? |
83bacfc
into
flutter:flutter-3.27-candidate.0
Manual cherry pick for #56719
Cherrypick request: flutter/flutter#159692