Skip to content

Commit

Permalink
Fix: Make scrolling inside of popup smoother in iOS
Browse files Browse the repository at this point in the history
This was reproducible only if the height of the popup exceeded the window height.
  • Loading branch information
vladimirsiljkovic committed Dec 10, 2018
1 parent b3b39fd commit e6f4a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.popupoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@

if (options.type == 'overlay' && !options.absolute) {
$wrapper.css('overflow','auto');
$wrapper[0].style.WebkitOverflowScrolling = 'touch'; // for smooth scrolling in overflow:auto divs in iOS
}

$el.css({
Expand Down

0 comments on commit e6f4a69

Please sign in to comment.