Skip to content

Commit

Permalink
Merge pull request #596 from laeubi/disable_move_on_dbl_click
Browse files Browse the repository at this point in the history
Disable move on double-click
  • Loading branch information
lcaron committed May 29, 2024
2 parents 33463a7 + d92598f commit 8f5bccc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,15 @@ private void addMouseListeners() {
mouseDeltaX = xPosition - e.x;
}
});
addListener(SWT.MouseDoubleClick, e -> {
moving = false;
mouseDeltaX = 0;
});

addListener(SWT.MouseUp, e -> {
if(!moving) {
return;
}
moving = false;
mouseDeltaX = 0;
if(movingValue != value) {
Expand Down

0 comments on commit 8f5bccc

Please sign in to comment.