Skip to content

Commit

Permalink
Fix column context menu is triggered after drag (column resizing).
Browse files Browse the repository at this point in the history
  • Loading branch information
Milad-Akarie committed Nov 28, 2022
1 parent 0e50ffd commit 212ee31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/ui/columns/pluto_column_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ class PlutoColumnTitleState extends PlutoStateWithChange<PlutoColumnTitle> {
}

void _handleOnPointMove(PointerMoveEvent event) {
_isPointMoving =
(_columnRightPosition - event.position).distanceSquared > 0.5;
_isPointMoving = true;

if (!_isPointMoving) {
if ((_columnRightPosition - event.position).distanceSquared <= 0.5) {
return;
}

Expand Down

0 comments on commit 212ee31

Please sign in to comment.