diff --git a/src/hooks/swipe.ts b/src/hooks/swipe.ts index 55d0287..f43c716 100644 --- a/src/hooks/swipe.ts +++ b/src/hooks/swipe.ts @@ -23,7 +23,7 @@ const useSwipe = ({ left, right, up, down }: SwipeOptions = {}) => { touchCoordsRef.current.touchStart.time = Date.now() } const handleTouchEnd = (e: TouchEvent) => { - const threshold = 150 + const threshold = 100 const swipeSpeed = 1 // sec; const touchEndX = e.changedTouches[0].clientX const touchEndY = e.changedTouches[0].clientY diff --git a/src/router.ts b/src/router.ts index 9ba1800..0f8c316 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,11 +1,13 @@ -import { createRouter } from '@tanstack/react-router' +import { createRouter, createHashHistory } from '@tanstack/react-router' import { routeTree } from './routeTree.gen' +const history = createHashHistory() const router = createRouter({ routeTree, - basepath: '/better-wordle', + basepath: '/', trailingSlash: 'never', + history, }) declare module '@tanstack/react-router' {