summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorlouis cuny <louiscuny@gmail.com>2014-02-05 21:07:18 +0100
committerlouis cuny <louiscuny@gmail.com>2014-02-05 21:07:18 +0100
commit1ad1257b72c3f9cabe9376ecfc64540a362491a6 (patch)
tree8c0f87ce00df272ff8121c151e656468b7b6b22e /js
parent6d2979bb51824a0a1b6e5fc6555f146d2c6a3b39 (diff)
parentb96e433e7abe5fc50db177bda885f4d7f3dd5ea3 (diff)
downloadmulti-select-1ad1257b72c3f9cabe9376ecfc64540a362491a6.zip
multi-select-1ad1257b72c3f9cabe9376ecfc64540a362491a6.tar.gz
multi-select-1ad1257b72c3f9cabe9376ecfc64540a362491a6.tar.bz2
Merge pull request #101 from camart/master
fix performance issue hiliting large lists
Diffstat (limited to 'js')
-rw-r--r--js/jquery.multi-select.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index 3aeb509..fc4164b 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -322,9 +322,11 @@
'activeMouse' : function($list){
var that = this;
-
+ var lastMovedDom = false;
$list.on('mousemove', function(){
- var elems = $list.find(that.elemsSelector);
+ if (lastMovedDom === this) return;
+ lastMovedDom = this;
+ var elems = $list.find(that.elemsSelector);
elems.on('mouseenter', function(){
elems.removeClass('ms-hover');