Skip to content

Commit

Permalink
fix #913 Window dragging is jumpy
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Apr 15, 2024
1 parent 90c54d3 commit 966d155
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.dominokit.domino.ui.icons.MdiIcon;
import org.dominokit.domino.ui.icons.lib.Icons;
import org.dominokit.domino.ui.layout.NavBar;
import org.dominokit.domino.ui.utils.Domino;
import org.dominokit.domino.ui.utils.PostfixAddOn;

/**
Expand Down Expand Up @@ -255,8 +256,8 @@ private void addMoveListeners() {
"mousedown",
"touchstart");

headerElement.element().addEventsListener(stopMoveListener, true, "mouseup", "touchend");
headerElement.element().addEventsListener(moveListener, true, "mousemove", "touchmove");
Domino.body().addEventsListener(stopMoveListener, true, "mouseup", "touchend");
Domino.body().addEventsListener(moveListener, true, "mousemove", "touchmove");
body().addEventsListener(stopMoveListener, "mouseup", "touchend");
}

Expand Down

0 comments on commit 966d155

Please sign in to comment.