]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use correct touch-action values
authorpatrickhlauke <redux@splintered.co.uk>
Mon, 15 Oct 2018 19:53:51 +0000 (20:53 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 20 Oct 2018 12:32:09 +0000 (15:32 +0300)
- my fault, my original advice of using `touch-action: pan-x` is exactly the value we *don't* want to have the browser handle...

js/tests/unit/carousel.js
scss/_carousel.scss

index 68c28aec5e983e4b77935102fc871bef273e2681..932b90f7dd2458cf717cc96048da0d0aac1d3a3d 100644 (file)
@@ -19,7 +19,7 @@ $(function () {
 
   var stylesCarousel = [
     '<style>',
-    '  .carousel.pointer-event { -ms-touch-action: pan-x; touch-action: pan-x; }',
+    '  .carousel.pointer-event { -ms-touch-action: pan-y pinch-zoom; touch-action: pan-y pinch-zoom; }',
     '</style>'
   ].join('')
 
index 7d3728b40ded15edb0904515cac1f31c7abd37ba..130965f7985acf48b050f9872379a937cbbf6868 100644 (file)
@@ -13,7 +13,7 @@
 }
 
 .carousel.pointer-event {
-  touch-action: pan-x;
+  touch-action: pan-y pinch-zoom;
 }
 
 .carousel-inner {