Add combinable touch-action support (#6115)

* add combinable `touch-action` support

* update changelog
This commit is contained in:
Robin Malfait 2021-11-17 16:04:13 +01:00 • committed by GitHub
parent ef325ea35b
commit 03f9de9008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 71 additions and 9 deletions

View file

@ -19,6 +19,16 @@
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.touch-pan-x,
.touch-pan-y,
.touch-pan-up,
.touch-pinch-zoom {
--tw-pan-x: var(--tw-empty, /*!*/ /*!*/);
--tw-pan-y: var(--tw-empty, /*!*/ /*!*/);
--tw-pinch-zoom: var(--tw-empty, /*!*/ /*!*/);
--tw-touch-action: var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom);
}
.snap-x {
--tw-scroll-snap-strictness: proximity;
}
@ -374,8 +384,21 @@
.cursor-pointer {
cursor: pointer;
}
.touch-pan-x {
--tw-pan-x: pan-x;
touch-action: var(--tw-touch-action);
}
.touch-pan-y {
touch-action: pan-y;
--tw-pan-y: pan-y;
touch-action: var(--tw-touch-action);
}
.touch-pan-up {
--tw-pan-y: pan-up;
touch-action: var(--tw-touch-action);
}
.touch-pinch-zoom {
--tw-pinch-zoom: pinch-zoom;
touch-action: var(--tw-touch-action);
}
.touch-manipulation {
touch-action: manipulation;