chore(autoPanSpeed): cleanup

This commit is contained in:
moklick
2024-07-04 18:03:22 +02:00
parent 3f259e9662
commit 62ba38cea9
3 changed files with 6 additions and 14 deletions
+1 -2
View File
@@ -79,8 +79,7 @@ function onPointerDown(
if (!autoPanOnConnect || !containerBounds) {
return;
}
const transform = getTransform();
const [x, y] = calcAutoPan(position, containerBounds, transform, autoPanSpeed);
const [x, y] = calcAutoPan(position, containerBounds, autoPanSpeed);
panBy({ x, y });
autoPanId = requestAnimationFrame(autoPan);