19 lines
646 B
JavaScript
19 lines
646 B
JavaScript
// Module ID: 5908
|
|
// Function ID: 5909
|
|
// Name: getDistanceForDirection
|
|
// Dependencies: [5909]
|
|
|
|
// Module 5908 (getDistanceForDirection)
|
|
import getInvertedMultiplier from "getInvertedMultiplier" /* 5909 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
arg5.getDistanceForDirection = function getDistanceForDirection(width, gestureDirection, arg2) {
|
|
const invertedMultiplier = getInvertedMultiplier.getInvertedMultiplier(gestureDirection, arg2);
|
|
if ("vertical" !== gestureDirection) {
|
|
if ("vertical-inverted" !== gestureDirection) {
|
|
return width.width * invertedMultiplier;
|
|
}
|
|
}
|
|
return width.height * invertedMultiplier;
|
|
};
|