-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Closed
Labels
a: qualityA truly polished experienceA truly polished experiencef: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 1.20Found to occur in 1.20Found to occur in 1.20frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
Description
When I move outside the parent component, onPanUpdate also calls
example:
body: Center(
child: Container(
width: 300,
height: 300,
color: Colors.red,
child: GestureDetector(onPanUpdate: (DragUpdateDetails details) {
RenderBox referenceBox = context.findRenderObject();
Offset localPosition =
referenceBox.globalToLocal(details.globalPosition);
print('---------------localPosition:$localPosition');
}),
),
),
Metadata
Metadata
Assignees
Labels
a: qualityA truly polished experienceA truly polished experiencef: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.found in release: 1.20Found to occur in 1.20Found to occur in 1.20frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on