Skip to content

Commit 1e84c95

Browse files
Fixes #4056 Highlight should not activate near navbar
1 parent e5f1dd1 commit 1e84c95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

js/activity.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6078,6 +6078,12 @@ class Activity {
60786078
this.unhighlightSelectedBlocks(false);
60796079
this.setSelectionMode(false);
60806080
}
6081+
6082+
// end the drag on navbar
6083+
6084+
document.getElementById("toolbars").addEventListener("mouseover" , ()=>{
6085+
this.isDragging = false;
6086+
} );
60816087

60826088

60836089
this._create2Ddrag = () => {
@@ -6129,6 +6135,8 @@ class Activity {
61296135

61306136
this._createDrag = (event) => {
61316137
this.isDragging = true;
6138+
console.log("drag triggered");
6139+
61326140
this.startX = event.clientX;
61336141
this.startY = event.clientY;
61346142
};

0 commit comments

Comments
 (0)