bind hover only on desktop

This commit is contained in:
Joffrey JAFFEUX
2017-07-19 16:48:23 +02:00
parent 38be969727
commit 60c0b5f0d2
@@ -130,7 +130,6 @@ export default Ember.Component.extend({
this._bindEmojiClick($list.find(".section-group"));
this._bindClearRecentEmojisGroup();
this._bindResizing();
this._bindHover();
this._bindCategoryClick();
this._bindModalClick();
this._bindFilterInput();
@@ -144,6 +143,9 @@ export default Ember.Component.extend({
return false;
}
});
if(!this.site.isMobileDevice) {
this._bindHover();
}
},
_bindModalClick() {