decord/source/6497_transformLongPressProps.js

31 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6497
// Function ID: 6498
2026-08-08 06:10:11 +00:00
// Name: transformLongPressProps
2026-08-24 06:08:38 +00:00
// Dependencies: [6476, 6491, 6467]
2026-08-08 06:10:11 +00:00
2026-08-24 06:08:38 +00:00
// Module 6497 (transformLongPressProps)
import ComposedGestureName from "ComposedGestureName" /* 6467 */;
import isGestureEnabled from "isGestureEnabled" /* 6476 */;
import useGesture from "useGesture" /* 6491 */;
require = arg1;
2026-08-08 06:10:11 +00:00
const dependencyMap = arg6;
function transformLongPressProps(shouldCancelWhenOutside) {
if (undefined === shouldCancelWhenOutside.shouldCancelWhenOutside) {
shouldCancelWhenOutside.shouldCancelWhenOutside = true;
}
return shouldCancelWhenOutside;
}
const items = [["minDuration", "minDurationMs"], ["maxDistance", "maxDist"]];
const map = new Map(items);
let closure_4 = {};
arg5.useLongPressGesture = function useLongPressGesture(gestureHandlerProps) {
let tmp = gestureHandlerProps;
if (gestureHandlerProps === undefined) {
tmp = closure_4;
}
2026-08-24 06:08:38 +00:00
const clonedAndRemappedConfig = isGestureEnabled.useClonedAndRemappedConfig(tmp, map, transformLongPressProps);
const obj = isGestureEnabled;
return useGesture.useGesture(ComposedGestureName.SingleGestureName.LongPress, clonedAndRemappedConfig);
2026-08-08 06:10:11 +00:00
};