Commit e602a3d 1 parent 2959b83 commit e602a3d Copy full SHA for e602a3d
File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -775,6 +775,21 @@ export default {
775
775
776
776
cursor : createUtilityPlugin ( 'cursor' ) ,
777
777
778
+ touchAction : ( { addUtilities } ) => {
779
+ addUtilities ( {
780
+ '.touch-auto' : { 'touch-action' : 'auto' } ,
781
+ '.touch-none' : { 'touch-action' : 'none' } ,
782
+ '.touch-pan-x' : { 'touch-action' : 'pan-x' } ,
783
+ '.touch-pan-left' : { 'touch-action' : 'pan-left' } ,
784
+ '.touch-pan-right' : { 'touch-action' : 'pan-right' } ,
785
+ '.touch-pan-y' : { 'touch-action' : 'pan-y' } ,
786
+ '.touch-pan-up' : { 'touch-action' : 'pan-up' } ,
787
+ '.touch-pan-down' : { 'touch-action' : 'pan-down' } ,
788
+ '.touch-pinch-zoom' : { 'touch-action' : 'pinch-zoom' } ,
789
+ '.touch-manipulation' : { 'touch-action' : 'manipulation' } ,
790
+ } )
791
+ } ,
792
+
778
793
userSelect : ( { addUtilities } ) => {
779
794
addUtilities ( {
780
795
'.select-none' : { 'user-select' : 'none' } ,
Original file line number Diff line number Diff line change 299
299
.cursor-pointer {
300
300
cursor : pointer;
301
301
}
302
+ .touch-pan-y {
303
+ touch-action : pan-y;
304
+ }
305
+ .touch-manipulation {
306
+ touch-action : manipulation;
307
+ }
302
308
.select-none {
303
309
user-select : none;
304
310
}
Original file line number Diff line number Diff line change 39
39
< div class ="clear-left "> </ div >
40
40
< div class ="container "> </ div >
41
41
< div class ="cursor-pointer "> </ div >
42
+ < div class ="touch-pan-y touch-manipulation "> </ div >
42
43
< div class ="hidden inline-grid "> </ div >
43
44
< div class ="divide-gray-200 "> </ div >
44
45
< div class ="divide-opacity-50 "> </ div >
You can’t perform that action at this time.
0 commit comments