1 | import getInvertedMultiplier from './getInvertedMultiplier';
|
2 | export default function getDistanceForDirection(layout, gestureDirection) {
|
3 | const multiplier = getInvertedMultiplier(gestureDirection);
|
4 |
|
5 | switch (gestureDirection) {
|
6 | case 'vertical':
|
7 | case 'vertical-inverted':
|
8 | return layout.height * multiplier;
|
9 |
|
10 | case 'horizontal':
|
11 | case 'horizontal-inverted':
|
12 | return layout.width * multiplier;
|
13 | }
|
14 | }
|
15 | //# sourceMappingURL=getDistanceForDirection.js.map |
\ | No newline at end of file |