Skip to content

Commit 5ff8d4c

Browse files
authoredMay 16, 2023
fix: console error when hovering over empty gutter cell with tooltipFollowsMouse set to false (#5173)
Fixes bug where console error is thrown when hovering over a gutter cell without content when tooltipFollowsMouse set to false.
1 parent 40ea2dc commit 5ff8d4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/mouse/default_gutter_handler.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ function GutterHandler(mouseHandler) {
4949

5050
tooltip.showTooltip(row);
5151

52+
if (!tooltip.isOpen)
53+
return;
54+
5255
editor.on("mousewheel", hideTooltip);
5356

5457
if (mouseHandler.$tooltipFollowsMouse) {

0 commit comments

Comments
 (0)
Please sign in to comment.