Skip to content

Commit

Permalink
Modify point move of PlutoColumnTitle.
Browse files Browse the repository at this point in the history
  • Loading branch information
bosskmk committed Nov 30, 2022
1 parent 1132ade commit 9374ca3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/ui/columns/pluto_column_title.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ class PlutoColumnTitleState extends PlutoStateWithChange<PlutoColumnTitle> {
}

void _handleOnPointMove(PointerMoveEvent event) {
_isPointMoving = true;
// if at least one movement event has distanceSquared > 0.5 _isPointMoving will be true
_isPointMoving |=
(_columnRightPosition - event.position).distanceSquared > 0.5;

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

final moveOffset = event.position.dx - _columnRightPosition.dx;

Expand Down

0 comments on commit 9374ca3

Please sign in to comment.