Skip to content

Commit

Permalink
add TouchStart
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Jan 10, 2024
1 parent 7dd9349 commit e162bbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --host",
"dev": "vite --host 0.0.0.0 --port 80",
"build": "vite build",
"build-zoomland": "vite build --base /zoomland/ --outDir dist/zoomland",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
Expand Down
7 changes: 4 additions & 3 deletions src/components/JumpButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ const JumpButton = ({ onClick, className = '' }) => {
}

return (
<div
<button
className={`JumpButton ${className}`}
onTouchEnd={handleTouchEnd}
onClick={handleClick}
onTouchStart={handleClick}
onKeyDown={() => {}}
tabIndex={0}
role="button"
>
<span>JUMP</span>
<a.div style={style} className="JumpButton__flash" />
</div>
</button>
)
}

Expand Down

0 comments on commit e162bbe

Please sign in to comment.