mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 11:09:06 +00:00
Remove cursor style changes during SVG panning
This commit is contained in:
@@ -203,7 +203,6 @@ class SvgViewer {
|
|||||||
this.isDragging = true;
|
this.isDragging = true;
|
||||||
this.lastMouseX = e.clientX;
|
this.lastMouseX = e.clientX;
|
||||||
this.lastMouseY = e.clientY;
|
this.lastMouseY = e.clientY;
|
||||||
document.body.style.cursor = 'grab';
|
|
||||||
this.disableTransition(); // Disable animation while panning
|
this.disableTransition(); // Disable animation while panning
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -238,7 +237,6 @@ class SvgViewer {
|
|||||||
window.addEventListener('mouseup', () => {
|
window.addEventListener('mouseup', () => {
|
||||||
if (this.isDragging) {
|
if (this.isDragging) {
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
document.body.style.cursor = '';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user