From 212ee31425eede00873ba6fcbf0d2ef75ad6a414 Mon Sep 17 00:00:00 2001 From: Milad akarie Date: Mon, 28 Nov 2022 16:08:41 +0300 Subject: [PATCH] Fix column context menu is triggered after drag (column resizing). --- lib/src/ui/columns/pluto_column_title.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/ui/columns/pluto_column_title.dart b/lib/src/ui/columns/pluto_column_title.dart index 3ebfccf6f..917216485 100644 --- a/lib/src/ui/columns/pluto_column_title.dart +++ b/lib/src/ui/columns/pluto_column_title.dart @@ -95,10 +95,9 @@ class PlutoColumnTitleState extends PlutoStateWithChange { } void _handleOnPointMove(PointerMoveEvent event) { - _isPointMoving = - (_columnRightPosition - event.position).distanceSquared > 0.5; + _isPointMoving = true; - if (!_isPointMoving) { + if ((_columnRightPosition - event.position).distanceSquared <= 0.5) { return; }