)]}'
{
  "commit": "e06d70d8467cf9d8f55f7e2a2d5c0cfa52ee1ec2",
  "tree": "8ecd1f0ae45060073207f479d0a6a2a7fc7f6f91",
  "parents": [
    "b1e1fa6198734efd0ee26afc9f7a84f5e63b6324"
  ],
  "author": {
    "name": "Harry Terkelsen",
    "email": "1961493+harryterkelsen@users.noreply.github.com",
    "time": "Tue Oct 27 17:44:16 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Oct 27 17:44:16 2026 +0000"
  },
  "message": "[web] Capture pointers to the Flutter view so drags survive platform view iframes (#195187)\n\n\u003c!--\nThanks for filing a pull request!\nReviewers are typically assigned within a week of filing a request.\nTo learn more about code review, see our documentation on Tree Hygiene:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n--\u003e\n\nOn Flutter Web, a drag that starts on Flutter content stops receiving\n`pointermove` events when the pointer moves over an `\u003ciframe\u003e` platform\nview, because the browser routes those events to the iframe document\ninstead of the host window. As a result, the dragged widget freezes over\nthe iframe and jumps when the pointer re-enters Flutter content.\n\nThis PR captures the pointer to the `\u003cflutter-view\u003e` root on\n`pointerdown` when the press targets Flutter content (`_viewTarget` or\n`flt-glass-pane`, to which events inside the scene\u0027s shadow root are\nretargeted), and cancels still-pressed pointers if capture on the view\nroot is involuntarily lost (`lostpointercapture`). Presses on platform\nviews, the text-editing host, and the semantics host are excluded so\nnative HTML interactions, text selection, and `ClickDebouncer`\naccessibility clicks continue to work on their original targets.\n\nThis change ships separately from automatic pointer interceptors so that\npointer-routing changes for all Flutter web apps can be reviewed and\nreverted independently.\n\n**Review hot spots**\n\n- **Boundary events during a captured drag:**\n`pointerover`/`out`/`enter`/`leave` on other elements (including\n`pointerleave` on the view root when dragging outside the window) are\nsuppressed until release.\n- **Involuntary capture loss (`lostpointercapture`):** cancels active\npresses if capture on `_viewTarget` is lost before\n`pointerup`/`pointercancel` (e.g. window blur or\n`releasePointerCapture`), while ignoring `lostpointercapture` after\nnormal release or bubbling from platform view descendants.\n- **Clicks and semantics:** after a captured press, `click` lands on the\nview root. `semanticsHost` is excluded from capture so `ClickDebouncer`\nand assistive-technology `flt-tappable` activation remain unchanged\n(drags starting on semantics nodes remain uncaptured over iframes).\n- **Touch, pen, and multi-view:** touch already has implicit capture\n(moving it to the view root is benign), pen drags gain capture alongside\nmouse drags, and each view captures to its own root.\n\nFixes https://github.com/flutter/flutter/issues/141307\n\nRelated: https://github.com/flutter/flutter/issues/157968,\nhttps://github.com/flutter/flutter/issues/134652\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [x] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/CONTRIBUTING.ai.md\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[flutter/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d281dc20faaad304174115fd6c45478b9844252d",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/lib/src/engine/pointer_binding.dart",
      "new_id": "2428b7a386e75027ed24b97f55d591534206633e",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/lib/src/engine/pointer_binding.dart"
    },
    {
      "type": "modify",
      "old_id": "5b9c61a5f7c92685794907a213332dd2ce948cea",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/test/engine/pointer_binding_test.dart",
      "new_id": "43f649f165e994fba1f472b3f01da39cdeb6ca82",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/test/engine/pointer_binding_test.dart"
    }
  ]
}
