Skip to content

Commit

Permalink
fix: redundantly setting continueCapture after decl
Browse files Browse the repository at this point in the history
  • Loading branch information
thennothinghappened committed Jan 15, 2025
1 parent 487c87e commit 514ef45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mouse/mouse_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class MouseHandler {
renderer.$isMousePressed = true;

var self = this;
var continueCapture = false;
var continueCapture = true;

var onMouseMove = function(e) {
if (!e) return;
Expand Down Expand Up @@ -192,7 +192,6 @@ class MouseHandler {
self.$onCaptureMouseMove = onMouseMove;
self.releaseMouse = event.capture(this.editor.container, onMouseMove, onCaptureEnd);

continueCapture = true;
onCaptureInterval();
}
cancelContextMenu() {
Expand Down

0 comments on commit 514ef45

Please sign in to comment.