We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fa632 commit cb7abf8Copy full SHA for cb7abf8
lib/Minimap.js
@@ -440,6 +440,11 @@ Minimap.prototype._init = function() {
440
441
Minimap.prototype._debouncedUpdate = function() {
442
443
+ // ignore updates if closed
444
+ if (!this.isOpen()) {
445
+ return;
446
+ }
447
+
448
const {
449
debounceDelay = 100,
450
debounceSkipDelay = 2000
@@ -466,6 +471,11 @@ Minimap.prototype._debouncedUpdate = function() {
466
471
467
472
Minimap.prototype._update = function() {
468
473
474
475
476
477
478
469
479
// if update was forced, clear any timeouts
470
480
if (this._updateTimeout) {
481
clearTimeout(this._updateTimeout);
0 commit comments