Skip to content

Commit d9982d6

Browse files
committed
fix: ignore updates when the minimap is closed
Related to #96 Closes #81
1 parent bd73d1e commit d9982d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Minimap.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ Minimap.prototype._init = function() {
439439
};
440440

441441
Minimap.prototype._requestUpdate = function() {
442+
443+
// ignore updates if closed
444+
if (!this.isOpen()) {
445+
return;
446+
}
447+
442448
const {
443449
debounceDelay = 100,
444450
debounceSkipDelay = 2000

0 commit comments

Comments
 (0)