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.hasClickedDown &&
!dragStatus.value.dragging && !dragStatus.value.dragging &&
Math.sqrt(Math.abs(e.movementX * e.movementY)) > sensitivity Math.sqrt(Math.abs(e.movementX * e.movementY)) > sensitivity
&& settingsStore.enableDragging
) { ) {
startDrag(e); startDrag(e);
} }
+1
View File
@@ -13,6 +13,7 @@ export const useSettingsStore = defineStore("settingstore", {
shaderQuality: 3, shaderQuality: 3,
shaderFramerate: 10, shaderFramerate: 10,
shaderPixelated: true, shaderPixelated: true,
enableDragging: false,
}), }),
actions: { actions: {
switchCardStyles() { switchCardStyles() {