Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
// Module ID: 6758
|
|
// Function ID: 6759
|
|
// Dependencies: [6737, 6752, 6728]
|
|
// Exports: useLongPressGesture
|
|
|
|
// Module 6758
|
|
import ComposedGestureName from "ComposedGestureName" /* 6728 */;
|
|
import DEFAULT_PROPS_TRANSFORMER from "DEFAULT_PROPS_TRANSFORMER" /* 6737 */;
|
|
import _mod6752 from "module_6752" /* 6752 */;
|
|
|
|
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 _mod6752.useGesture(ComposedGestureName.SingleGestureName.LongPress, clonedAndRemappedConfig);
|
|
};
|