Skip to content

Commit

Permalink
Fix: Ensure helpfulSearchDiv hides consistently on context menu (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeNikk authored Jan 15, 2025
1 parent 23206c9 commit 8f4d55b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ class Activity {
(event) => {
event.preventDefault();
event.stopPropagation();
if (this.beginnerMode) return;
if (this.beginnerMode) return;
if (this.isHelpfulSearchWidgetOn) {
this._hideHelpfulSearchWidget();
}
if (!this.blocks.isCoordinateOnBlock(event.clientX, event.clientY) &&
event.target.id === "myCanvas") {
this._displayHelpfulWheel(event);
Expand Down

0 comments on commit 8f4d55b

Please sign in to comment.