Skip to content

Commit

Permalink
Add webkit overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpoort committed Apr 13, 2018
1 parent 22b375b commit a420129
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/css/swipr.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

[data-swipr] {
overflow: auto;
-webkit-overflow-scrolling: touch;
}

.swipr-prev,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swipr",
"description": "Swipe through horizontal content. Buttons for non-mobile/non-touch devices. Natural swipe for mobile/touch devices",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://robinpoort.github.io/swipr/",
"author": "https://github.com/robinpoort/swipr/graphs/contributors",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/scss/swipr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $swipr-wrapper-overflow: hidden !default;
// Swiper
$swipr-selector: '[data-swipr]' !default;
$swipr-overflow: auto !default;
$swipr-webkit-overflow: touch !default;

// Buttons
$swipr-button-position: absolute !default;
Expand Down Expand Up @@ -40,6 +41,7 @@ $swipr-disabled-pointer-events: none !default;
@if $swipr-selector != false {
#{$swipr-selector} {
@if $swipr-overflow != false { overflow: $swipr-overflow; }
@if $swipr-webkit-overflow != false { -webkit-overflow-scrolling: $swipr-webkit-overflow; }
}
}

Expand Down

0 comments on commit a420129

Please sign in to comment.