Remove cursor style changes during SVG panning

This commit is contained in:
ema
2025-07-01 03:38:34 +08:00
parent e76c882d49
commit fe13f5d45e

View File

@@ -203,7 +203,6 @@ class SvgViewer {
this.isDragging = true;
this.lastMouseX = e.clientX;
this.lastMouseY = e.clientY;
document.body.style.cursor = 'grab';
this.disableTransition(); // Disable animation while panning
}
});
@@ -238,7 +237,6 @@ class SvgViewer {
window.addEventListener('mouseup', () => {
if (this.isDragging) {
this.isDragging = false;
document.body.style.cursor = '';
}
});
}