Feat : add toggle to disable dragging

This commit is contained in:
2024-07-31 11:10:51 +02:00
parent 302890a4ac
commit c1bbf7dce4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -145,6 +145,7 @@ function mouseMove(e: MouseEvent) {
dragStatus.value.hasClickedDown &&
!dragStatus.value.dragging &&
Math.sqrt(Math.abs(e.movementX * e.movementY)) > sensitivity
&& settingsStore.enableDragging
) {
startDrag(e);
}
+1
View File
@@ -13,6 +13,7 @@ export const useSettingsStore = defineStore("settingstore", {
shaderQuality: 3,
shaderFramerate: 10,
shaderPixelated: true,
enableDragging: false,
}),
actions: {
switchCardStyles() {