Files
discord-decomp/_bundle/Module5315.js
T
2026-11-01 12:12:55 +02:00

25 lines
626 B
JavaScript

// Metro module 5315 (f5316).
export function needsToReattach(a0, a1) {
if (a1.length !== a0.attachedGestures.length) {
return true;
}
const length = a1.length;
let r0 = 0;
if (0 < length) {
while (true) {
const handlerName = a1[r0].handlerName;
const handlerName2 = a0.attachedGestures[r0].handlerName;
const r1 = r0;
if (handlerName === handlerName2 && a1[r1].shouldUseReanimated === a0.attachedGestures[r1].shouldUseReanimated) {
r0 = r1 + 1;
if (r0 < a1.length) {
continue;
}
break;
}
return true;
}
}
return false;
}