Skip to content

Make RenderUiKitView reject absorbed touch events - #28666

Merged
amirh merged 2 commits into
flutter:masterfrom
amirh:uikitview_reject_absorbed
Mar 4, 2019
Merged

amirh merged 2 commits into
flutter:masterfrom
amirh:uikitview_reject_absorbed

Conversation

@amirh

@amirh amirh commented Feb 28, 2019

Copy link
Copy Markdown
Contributor

Description

When a touch event that is in the bounds of a RenderUiKitView is absorbed by another render object,
the RenderUiKitView's handleEvent is not called for that object. On the platform side, the touch event hits the FlutterTouchInterceptingView which is waiting for a framework decision that never arrived on whether to reject or accept the gesture.

This change fixes the issue by having RenderUiKitView register a global PointerRoute, that is used to reject absorbed touch events.

Related Issues

#28659

@amirh
amirh requested a review from cyanglaz February 28, 2019 20:36
Comment thread packages/flutter/lib/src/rendering/platform_view.dart Outdated
@collinjackson
collinjackson self-requested a review March 1, 2019 01:05
@amirh
amirh force-pushed the uikitview_reject_absorbed branch from 9fdb1b0 to c73c311 Compare March 1, 2019 02:50
@dnfield

dnfield commented Mar 1, 2019

Copy link
Copy Markdown
Contributor

This LGTM, though I suspect it would be good to get a review from someone else more familiar with the gesture system.

@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Mar 1, 2019

@cyanglaz cyanglaz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download

@amirh
amirh merged commit 5099701 into flutter:master Mar 4, 2019
@amirh
amirh deleted the uikitview_reject_absorbed branch March 4, 2019 22:26
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants