Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Commit

Permalink
Fix app button leave event
Browse files Browse the repository at this point in the history
  • Loading branch information
jaszhix committed Jan 9, 2017
1 parent cfa945a commit f8e37d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/specialMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ AppThumbnailHoverMenu.prototype = {
},

_onAppButtonLeave: function () {
if (this._applet.onClickThumbs && this.openTime + 1000 > Date.now()) {
if ((this._applet.onClickThumbs && this.openTime + 1000 > Date.now()) || !this._applet.onClickThumbs) {
setTimeout(()=>this.close(), this._applet.thumbTimeout)
}
},
Expand Down

0 comments on commit f8e37d6

Please sign in to comment.