Skip to content

Commit 2d97b78

Browse files
committed
Merge pull request select2#845 from kevin-brown/master
Better imitate native experience on iOS
2 parents 9035dfc + 940d1f2 commit 2d97b78

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

select2.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
309309
position: relative;
310310
overflow-x: hidden;
311311
overflow-y: auto;
312+
-webkit-tap-highlight-color: rgba(0,0,0,0);
312313
}
313314

314315
.select2-results ul.select2-result-sub {

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ the specific language governing permissions and limitations under the Apache Lic
648648
this.initContainerWidth();
649649

650650
installFilteredMouseMove(this.results);
651-
this.dropdown.delegate(resultsSelector, "mousemove-filtered", this.bind(this.highlightUnderEvent));
651+
this.dropdown.delegate(resultsSelector, "mousemove-filtered touchstart touchmove touchend", this.bind(this.highlightUnderEvent));
652652

653653
installDebouncedScroll(80, this.results);
654654
this.dropdown.delegate(resultsSelector, "scroll-debounced", this.bind(this.loadMoreIfNeeded));

0 commit comments

Comments
 (0)