Skip to content

ScaleGestureRecognizer isn't transforming PointerEvents to the local coordinate system of the event receiver #33818

@mtcliatt

Description

@mtcliatt

After pull 32192, pointer events should be local to the event receiver. But I think I'm still seeing the previous behavior, of global PointerEvents.

I'm still getting global events from GestureDetector.onScaleUpdate. I created a minimal example, where I've got a box that renders the initial focal point of the gesture, as well as the current focal point: example on gist.github.

Here's a screenshot of the example that shows the focal points below the box that contains the gesture detector: link.

Is this expected?

I'm running:
Flutter 1.6.8-pre.43 • channel master • https://github.com/flutter/flutter.git
Framework • revision cd1d40a (7 hours ago) • 2019-06-03 11:08:30 -0700
Engine • revision f9ce016
Tools • Dart 2.3.2 (build 2.3.2-dev.0.0 224f82c21c)

Metadata

Metadata

Assignees

Labels

f: gesturesflutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions