StackedRouter: increse swipe to back detection
All checks were successful
/ depoly (push) Successful in 1m26s

This commit is contained in:
thislight 2024-11-18 23:02:53 +08:00
parent 81325e2b22
commit 840ad2cf00
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -306,7 +306,7 @@ const StackedRouter: Component<StackedRouterProps> = (oprops) => {
} }
const [fig0] = event.touches; const [fig0] = event.touches;
const { x, width } = event.currentTarget.getBoundingClientRect(); const { x, width } = event.currentTarget.getBoundingClientRect();
if (fig0.clientX < x - 22 || fig0.clientX > x + 22) { if (fig0.clientX < (x - 44) || fig0.clientX > (x + 44)) {
return; return;
} }
origX = x; origX = x;