diff --git a/lib/src/widgets/board.dart b/lib/src/widgets/board.dart index e59e414..7389541 100644 --- a/lib/src/widgets/board.dart +++ b/lib/src/widgets/board.dart @@ -582,8 +582,9 @@ class _BoardState extends State { if (_currentPointerDownEvent == null || _currentPointerDownEvent!.pointer != details.pointer || - widget.settings.pieceShiftMethod == PieceShiftMethod.tapTwoSquares) + widget.settings.pieceShiftMethod == PieceShiftMethod.tapTwoSquares) { return; + } final distance = (details.position - _currentPointerDownEvent!.position).distance;