Feat : add toggle to disable dragging
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user