19 lines
646 B
JavaScript
19 lines
646 B
JavaScript
// Module ID: 6560
|
|
// Function ID: 6561
|
|
// Name: getDistanceForDirection
|
|
// Dependencies: [6561]
|
|
|
|
// Module 6560 (getDistanceForDirection)
|
|
import getInvertedMultiplier from "getInvertedMultiplier" /* 6561 */;
|
|
|
|
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;
|
|
};
|