mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 09:45:04 +02:00
Update MkImageGallery.item.vue
This commit is contained in:
@@ -383,8 +383,8 @@ function updateInertia(timeStamp: number) {
|
||||
if (isDragging) return;
|
||||
if (!isZooming.value) return;
|
||||
if (Math.abs(pointerVec.x) < 0.01 && Math.abs(pointerVec.y) < 0.01) return;
|
||||
translation.value.x += pointerVec.x;
|
||||
translation.value.y += pointerVec.y;
|
||||
translation.value.x += pointerVec.x * timeDelta;
|
||||
translation.value.y += pointerVec.y * timeDelta;
|
||||
pointerVec.x *= inertiaFactor ** (timeDelta / 16.67);
|
||||
pointerVec.y *= inertiaFactor ** (timeDelta / 16.67);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user