Skip to content

Commit

Permalink
fix: console error when hovering over empty gutter cell with tooltipF…
Browse files Browse the repository at this point in the history
…ollowsMouse set to false (#5173)

Fixes bug where console error is thrown when hovering over a gutter cell without content when tooltipFollowsMouse set to false.
  • Loading branch information
akoreman authored May 16, 2023
1 parent 40ea2dc commit 5ff8d4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mouse/default_gutter_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function GutterHandler(mouseHandler) {

tooltip.showTooltip(row);

if (!tooltip.isOpen)
return;

editor.on("mousewheel", hideTooltip);

if (mouseHandler.$tooltipFollowsMouse) {
Expand Down

0 comments on commit 5ff8d4c

Please sign in to comment.