1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Merge pull request #845 from kevin-brown/master

Better imitate native experience on iOS
This commit is contained in:
Igor Vaynberg 2013-02-11 20:29:25 -08:00
commit 2d97b78fc6
2 changed files with 2 additions and 1 deletions

View File

@ -309,6 +309,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
position: relative; position: relative;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
-webkit-tap-highlight-color: rgba(0,0,0,0);
} }
.select2-results ul.select2-result-sub { .select2-results ul.select2-result-sub {

View File

@ -648,7 +648,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.initContainerWidth(); this.initContainerWidth();
installFilteredMouseMove(this.results); installFilteredMouseMove(this.results);
this.dropdown.delegate(resultsSelector, "mousemove-filtered", this.bind(this.highlightUnderEvent)); this.dropdown.delegate(resultsSelector, "mousemove-filtered touchstart touchmove touchend", this.bind(this.highlightUnderEvent));
installDebouncedScroll(80, this.results); installDebouncedScroll(80, this.results);
this.dropdown.delegate(resultsSelector, "scroll-debounced", this.bind(this.loadMoreIfNeeded)); this.dropdown.delegate(resultsSelector, "scroll-debounced", this.bind(this.loadMoreIfNeeded));