Skip to content

Commit

Permalink
check for object existence to change zindex (fixed dragging thumb for…
Browse files Browse the repository at this point in the history
… scroll bug)
  • Loading branch information
brauliorivas committed Aug 8, 2024
1 parent f439f6a commit f1eb314
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/draw/drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export function dragMove(event) {
}

export function dragEnd() {
currentObject.zIndex = 1;
if (currentObject) {
currentObject.zIndex = 1;
}
const app = getApp();
app.stage.off("pointermove", dragMove);
}

0 comments on commit f1eb314

Please sign in to comment.