Skip to content

Commit

Permalink
Slides not swiping on mobiles #127
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Nov 8, 2015
1 parent 8300362 commit ebaa3de
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/css/glide.core.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
transform-style: preserve-3d;
-ms-touch-action: pan-Y;
touch-action: pan-Y;
overflow: hidden;
}
.glide__track.dragging {
cursor: -webkit-grabbing;
Expand Down Expand Up @@ -56,6 +57,9 @@
float: left;
clear: none;
}
.glide--carousel.glide--vertical .glide__track {
overflow: visible;
}
.glide--carousel .glide__slide {
float: left;
clear: none;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/glide.core.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/less/glide.core.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
backface-visibility: hidden;
transform-style: preserve-3d;
touch-action: pan-Y;
overflow: hidden;

&.dragging {
cursor: grabbing;
Expand Down Expand Up @@ -63,6 +64,14 @@

&--carousel {

&@{that}--vertical {

@{that}__track {
overflow: visible;
}

}

@{that}__slide {
float: left;
clear: none;
Expand Down
9 changes: 9 additions & 0 deletions src/sass/glide.core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
backface-visibility: hidden;
transform-style: preserve-3d;
touch-action: pan-Y;
overflow: hidden;

&.dragging {
cursor: grabbing;
Expand Down Expand Up @@ -63,6 +64,14 @@

&--carousel {

&#{$that}--vertical {

#{$that}__track {
overflow: visible;
}

}

#{$that}__slide {
float: left;
clear: none;
Expand Down

0 comments on commit ebaa3de

Please sign in to comment.