Skip to content

Commit

Permalink
hopefully fixed github pages routing
Browse files Browse the repository at this point in the history
  • Loading branch information
LooLzzz committed Sep 2, 2024
1 parent 1912d3e commit 9dd9763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/swipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/router.ts
Original file line number Diff line number Diff line change
@@ -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' {
Expand Down

0 comments on commit 9dd9763

Please sign in to comment.