decord/source/5622_transformLongPressProps.js

31 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5622
// Function ID: 5623
2026-08-08 06:10:11 +00:00
// Name: transformLongPressProps
2026-08-25 06:04:03 +00:00
// Dependencies: [5601, 5616, 5592]
2026-08-08 06:10:11 +00:00
2026-08-25 06:04:03 +00:00
// Module 5622 (transformLongPressProps)
import ComposedGestureName from "ComposedGestureName" /* 5592 */;
import isGestureEnabled from "isGestureEnabled" /* 5601 */;
import useGesture from "useGesture" /* 5616 */;
2026-08-24 06:08:38 +00:00
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
};