We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49489d9 commit d5a2881Copy full SHA for d5a2881
lib/components/canvas/canvas_gesture_detector.dart
@@ -479,6 +479,8 @@ class CanvasGestureDetectorState extends State<CanvasGestureDetector> {
479
onPointerUp: _listenerPointerUpEvent,
480
onPointerHover: _listenerPointerHoverEvent,
481
child: GestureDetector(
482
+ // Double tap and drag to switch to eraser
483
+ onDoubleTapDown: (details) => widget.onStylusButtonChanged(true),
484
child: LayoutBuilder(
485
builder: (BuildContext context, BoxConstraints containerBounds) {
486
this.containerBounds = containerBounds;
0 commit comments