Skip to content

Commit 7d20f6f

Browse files
Fixes #4056 Highlight should not activate near navbar (#4058)
* Fixes #4056 Highlight should not activate near navbar * remove console log * update changes
1 parent 21c77f6 commit 7d20f6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/activity.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6078,7 +6078,9 @@ class Activity {
60786078
this.unhighlightSelectedBlocks(false);
60796079
this.setSelectionMode(false);
60806080
}
6081-
6081+
6082+
// end the drag on navbar
6083+
document.getElementById("toolbars").addEventListener("mouseover", () => {this.isDragging = false;});
60826084

60836085
this._create2Ddrag = () => {
60846086
this.dragArea = {};

0 commit comments

Comments
 (0)