mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
[Angular] Clean up InfoGesture workaround
...and add comment pointing back to the Angular issue which motivates the workaround.
This commit is contained in:
parent
560c8612bd
commit
52c471bd3a
@ -111,7 +111,9 @@ define(
|
|||||||
|
|
||||||
this.trackPosition(event);
|
this.trackPosition(event);
|
||||||
|
|
||||||
// If we're already going to sho
|
// Do nothing if we're already scheduled to show a bubble.
|
||||||
|
// This may happen due to redundant event firings caused
|
||||||
|
// by https://github.com/angular/angular.js/issues/12795
|
||||||
if (this.pendingBubble) {
|
if (this.pendingBubble) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -121,8 +123,7 @@ define(
|
|||||||
|
|
||||||
// Show the bubble, after a suitable delay (if mouse has
|
// Show the bubble, after a suitable delay (if mouse has
|
||||||
// left before this time is up, this will be canceled.)
|
// left before this time is up, this will be canceled.)
|
||||||
this.pendingBubble = this.pendingBubble ||
|
this.pendingBubble = this.$timeout(displayBubble, this.delay);
|
||||||
this.$timeout(displayBubble, this.delay);
|
|
||||||
|
|
||||||
this.element.on('mouseleave', this.hideBubbleCallback);
|
this.element.on('mouseleave', this.hideBubbleCallback);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user