decord/source/__polyfill/06xxx/module_6815.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

30 lines
1.1 KiB
JavaScript

// Module ID: 6815
// Function ID: 6816
// Dependencies: [6794, 6809, 6785]
// Exports: useLongPressGesture
// Module 6815
import ComposedGestureName from "ComposedGestureName" /* 6785 */;
import DEFAULT_PROPS_TRANSFORMER from "DEFAULT_PROPS_TRANSFORMER" /* 6794 */;
import _mod6809 from "module_6809" /* 6809 */;
require = arg1;
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 = {};
export const useLongPressGesture = function useLongPressGesture(gestureHandlerProps) {
let tmp = gestureHandlerProps;
if (gestureHandlerProps === undefined) {
tmp = closure_4;
}
const clonedAndRemappedConfig = DEFAULT_PROPS_TRANSFORMER.useClonedAndRemappedConfig(tmp, map, transformLongPressProps);
return _mod6809.useGesture(ComposedGestureName.SingleGestureName.LongPress, clonedAndRemappedConfig);
};