decord/source/9717_handlerOffsetDirection.js
2026-07-30 10:14:41 +00:00

26 lines
994 B
JavaScript

// Module ID: 9717
// Function ID: 9718
// Name: handlerOffsetDirection
// Dependencies: []
// Module 9717 (handlerOffsetDirection)
function handlerOffsetDirection(defaultScrollOffsetValue, fixedDirection) {
let num = -1;
let num2 = -1;
if ("negative" !== fixedDirection) {
let num3 = 1;
if ("positive" !== fixedDirection) {
if (0 !== defaultScrollOffsetValue.value) {
const _Math = Math;
num = Math.sign(defaultScrollOffsetValue.value);
}
num3 = num;
}
num2 = num3;
}
return num2;
}
handlerOffsetDirection.__closure = {};
handlerOffsetDirection.__workletHash = 4382236906699;
handlerOffsetDirection.__initData = { code: "function handlerOffsetDirection_Pnpm_handleroffsetDirectionTs1(handlerOffset,fixedDirection){if(fixedDirection===\"negative\")return-1;if(fixedDirection===\"positive\")return 1;if(handlerOffset.value===0)return-1;return Math.sign(handlerOffset.value);}" };
arg5.handlerOffsetDirection = handlerOffsetDirection;