-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
If you define both onPanUpdate and onScaleUpdate you get this error:
Incorrect GestureDetector arguments.
I/flutter ( 3574): Having both a pan gesture recognizer and a scale gesture recognizer is redundant; scale is a superset of pan. Just use the scale gesture recognizer.
But how? onPanUpdate tells you dx and dy from the last position. While onScaleUpdate tells you focalPoint and localFocalPoint with no initial position. There's no easy way to convert between them.
Or am I missing something?
Frankly, if onScaleUpdate is a superset of onPanUpdate it should contain at least the exact same fields as onPanUpdate.
escamoteur, justinmc, neckaros, orestesgaolin, talamaska and 8 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.