diff --git a/src/platform/StackedRouter.tsx b/src/platform/StackedRouter.tsx index 445be66..07b3526 100644 --- a/src/platform/StackedRouter.tsx +++ b/src/platform/StackedRouter.tsx @@ -306,10 +306,7 @@ const StackedRouter: Component = (oprops) => { } const [fig0] = event.touches; const { x, width } = event.currentTarget.getBoundingClientRect(); - if ( - fig0.clientX - fig0.radiusX < x - 22 || - fig0.clientX + fig0.radiusX > x + 22 - ) { + if (fig0.clientX < x - 22 || fig0.clientX > x + 22) { return; } origX = x; @@ -416,10 +413,10 @@ const StackedRouter: Component = (oprops) => { class="StackedPage" onCancel={[popFrame, 1]} onClick={[onDialogClick, popFrame]} - onTouchStart={onDialogTouchStart} - onTouchMove={onDialogTouchMove} - onTouchEnd={onDialogTouchEnd} - onTouchCancel={onDialogTouchCancel} + on:touchstart={onDialogTouchStart} + on:touchmove={onDialogTouchMove} + on:touchend={onDialogTouchEnd} + on:touchcancel={onDialogTouchCancel} id={frame().rootId} >