Remove unused code and refactor types importing
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
<a href={url} sveltekit:noscroll tabindex="0">
|
||||
<figure class="house__image shadow-photo">
|
||||
<Image
|
||||
class="photo"
|
||||
id={photoId}
|
||||
sizeKey="photo-list"
|
||||
sizes={{
|
||||
@@ -46,7 +47,6 @@
|
||||
}}
|
||||
ratio={1.5}
|
||||
alt={photoAlt}
|
||||
class="photo"
|
||||
/>
|
||||
</figure>
|
||||
<span class="house__index title-index">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user