Skip to content

Commit

Permalink
feat: add touch-action utilities
Browse files Browse the repository at this point in the history
Fixes #331
  • Loading branch information
muhammadsammy committed Dec 17, 2021
1 parent c51e665 commit 2d695e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/cli/lib/non-configurable/interactivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,25 @@ const scrollSnap = [

const scrollBehavior = ['scroll-auto', 'scroll-smooth'];

const touchAction = [
'touch-auto',
'touch-none',
'touch-pan-x',
'touch-pan-left',
'touch-pan-right',
'touch-pan-y',
'touch-pan-up',
'touch-pan-down',
'touch-pinch-zoom',
'touch-manipulation',
];

export default {
appearance,
pointerEvents,
resize,
userSelect,
scrollSnap,
scrollBehavior,
touchAction,
};
3 changes: 2 additions & 1 deletion src/cli/types/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ type TInteractivityCategoryItem =
| 'scrollSnap'
| 'scrollMargin'
| 'scrollPadding'
| 'scrollBehavior';
| 'scrollBehavior'
| 'touchAction';

type TLayoutCategoryItem =
| 'display'
Expand Down

0 comments on commit 2d695e4

Please sign in to comment.