From 840ad2cf00144b98876f5d2f28976d3de266a919 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 18 Nov 2024 23:02:53 +0800 Subject: [PATCH] StackedRouter: increse swipe to back detection --- src/platform/StackedRouter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/StackedRouter.tsx b/src/platform/StackedRouter.tsx index 19ac062..53cf7ff 100644 --- a/src/platform/StackedRouter.tsx +++ b/src/platform/StackedRouter.tsx @@ -306,7 +306,7 @@ const StackedRouter: Component = (oprops) => { } const [fig0] = event.touches; 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; } origX = x;