From 60c0b5f0d2ae5adaad64f746ffa8cc35fd1c1d9b Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 19 Jul 2017 11:18:34 +0200 Subject: [PATCH] bind hover only on desktop --- .../javascripts/discourse/components/emoji-picker.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 index 80e6e981ad7..01daa3f0d1c 100644 --- a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 +++ b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 @@ -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() {