Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorpatrickhlauke <redux@splintered.co.uk>2018-10-16 01:25:44 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-10-20 15:32:09 +0300
commit8883ccb205abfe975b4cacca8fbc22cf67092eb0 (patch)
tree09a2c57f6df054d28f6a8bd6f00e34d1f7e32516 /js
parent9164f772698a54c45da632189bdf65e719c39f73 (diff)
Set touch-action to "none"
Firefox currently seems extremely fickle - with `pan-y` if fires pointercancel as soon as a touch strays even a pixel or so vertically. While `touch-action: pan-y` would be ideal (allowing users to scroll the page even when their finger started the scroll on the carousel), this prevents a swipe that isn't perfectly/only horizontal to be recognised by Firefox.
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js
index 932b90f7dd..bafd45fe78 100644
--- a/js/tests/unit/carousel.js
+++ b/js/tests/unit/carousel.js
@@ -19,7 +19,7 @@ $(function () {
var stylesCarousel = [
'<style>',
- ' .carousel.pointer-event { -ms-touch-action: pan-y pinch-zoom; touch-action: pan-y pinch-zoom; }',
+ ' .carousel.pointer-event { -ms-touch-action: none; touch-action: none; }',
'</style>'
].join('')