This repository was archived by the owner on Feb 25, 2025. It is now read-only.
[cp:beta][web] Work around wrong pointerId in coalesced events in iOS Safari 18.2 (#56719)#56905
Merged
auto-submit[bot] merged 2 commits intoflutter:flutter-3.27-candidate.0from Dec 10, 2024
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
ditman
approved these changes
Dec 2, 2024
Member
ditman
left a comment
There was a problem hiding this comment.
LGTM, thanks for cherry-picking!
|
Is there any chance to get these changes merged soon? |
Contributor
|
@mdebbar there are failing tests in |
Contributor
Author
|
@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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Manual cherry pick for #56719
Cherrypick request: flutter/flutter#159692