1
0
mirror of synced 2025-03-10 22:56:12 +03:00

Reduce search field focusing, improving performance

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
This commit is contained in:
creage 2012-06-17 00:31:24 +03:00 committed by Igor Vaynberg
parent 9497693b64
commit 64b69425b0

View File

@ -422,8 +422,8 @@
// initialize the container
this.initContainer();
installFilteredMouseMove(this.results);
this.dropdown.delegate(resultsSelector, "mousemove-filtered", this.bind(this.highlightUnderEvent));
//installFilteredMouseMove(this.results);
this.dropdown.delegate(resultsSelector, "mouseover", this.bind(this.highlightUnderEvent));
installDebouncedScroll(80, this.results);
this.dropdown.delegate(resultsSelector, "scroll-debounced", this.bind(this.loadMoreIfNeeded));
@ -773,7 +773,7 @@
$(choices[index]).addClass("select2-highlighted");
this.ensureHighlightVisible();
if (this.opened()) this.focusSearch();
//if (this.opened()) this.focusSearch();
},
highlightUnderEvent: function (event) {