Remove unused code and refactor types importing

This commit is contained in:
2022-06-21 20:03:26 +02:00
parent 23b0035272
commit f0173bb828
15 changed files with 17 additions and 31 deletions

View File

@@ -38,7 +38,7 @@
const moveProgress = (clientX - left) / width // 0 to 1
// Move horizontally
offset.update($c => ({
offset.update(_ => ({
x: lerp(-56, 56, moveProgress),
y: 0
}))
@@ -48,7 +48,7 @@
}
// Leaving mouseover
const handleMouseLeave = (event: MouseEvent) => {
const handleMouseLeave = () => {
offset.update($c => ({
x: $c.x,
y: 40