Skip to content

Commit

Permalink
Fixed 765: scrolling country list on iOS uses inertia scrolling now
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszhernas committed Nov 14, 2018
1 parent e1e54e3 commit 344fc13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/css/intlTelInput.scss
Expand Up @@ -171,6 +171,12 @@ $mobilePopupMargin: 30px !default;
max-height: 200px;
overflow-y: scroll;

// Fixes https://github.com/jackocnr/intl-tel-input/issues/765
// Apple still hasn't fixed the issue where setting overflow: scroll on a div element does not use inertia scrolling
// If this is not set, then the country list scroll stops moving after rasing a finger, and users report that scroll is slow
// Stackoverflow question about it: https://stackoverflow.com/questions/33601165/scrolling-slow-on-mobile-ios-when-using-overflowscroll
-webkit-overflow-scrolling: touch;

// the divider below the preferred countries
.divider {
padding-bottom: 5px;
Expand Down

0 comments on commit 344fc13

Please sign in to comment.