Skip to content

Commit

Permalink
Fixing #415
Browse files Browse the repository at this point in the history
  • Loading branch information
MeoMix committed Apr 30, 2015
1 parent 439b860 commit 6ddda20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/foreground/view/behavior/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ define(function() {
this._destroy(this.ui.textTooltipable);
},

_onMouseEnter: function () {
_onMouseEnter: function() {
// Defer applying tooltips until absolutely necessary for rendering performance.
if (!this.isDecorated) {
this.isDecorated = true;
this._setTooltips();
// Wrap in a RAF to allow for :hover effects to take place which might affect whether textTooltipable overflows or not.
requestAnimationFrame(this._setTooltips.bind(this));
}
},

Expand Down

0 comments on commit 6ddda20

Please sign in to comment.