mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +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);
|
||||
|
||||
// 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) {
|
||||
return;
|
||||
}
|
||||
@ -121,8 +123,7 @@ define(
|
||||
|
||||
// Show the bubble, after a suitable delay (if mouse has
|
||||
// left before this time is up, this will be canceled.)
|
||||
this.pendingBubble = this.pendingBubble ||
|
||||
this.$timeout(displayBubble, this.delay);
|
||||
this.pendingBubble = this.$timeout(displayBubble, this.delay);
|
||||
|
||||
this.element.on('mouseleave', this.hideBubbleCallback);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user