Jelajahi Sumber

#4884 Reactions popup should work based on mouse support, not on window size

Alex Trofimov 1 tahun lalu
induk
melakukan
f4e4cec223
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      inc/js/classes/BxDolVoteReactions.js

+ 2 - 2
inc/js/classes/BxDolVoteReactions.js

@@ -32,9 +32,9 @@ BxDolVoteReactions.prototype.init = function()
     BxDolVote.prototype.init.call(this);
 
     var $this = this;
-    var bMobile = bx_check_mq() == 'mobile';
+    var bMouse = !bx_is_mouse();
     
-    if(!this._bQuickMode || !bMobile)
+    if(!this._bQuickMode || !bMouse)
         $('#' + this._aHtmlIds['main'] + ' .' + this._sClassDo).hover(function() {
             $this.onVoteIn(this);
         }, function() {