diff --git a/zoompinch-vue/package.json b/zoompinch-vue/package.json index 7813f58..0c2b85e 100644 --- a/zoompinch-vue/package.json +++ b/zoompinch-vue/package.json @@ -1,7 +1,7 @@ { "name": "zoompinch", "private": false, - "version": "0.0.33", + "version": "0.0.34", "type": "module", "files": [ "package.json", diff --git a/zoompinch-vue/src/controllers/wheel.ts b/zoompinch-vue/src/controllers/wheel.ts index ac26d7b..a40fef4 100644 --- a/zoompinch-vue/src/controllers/wheel.ts +++ b/zoompinch-vue/src/controllers/wheel.ts @@ -45,7 +45,7 @@ export function useWheel({ function handleWheel(event: WheelEvent) { let { deltaX, deltaY, ctrlKey } = event; const mouseMultiples = [120, 100]; - const mouseFactor = 4; + const mouseFactor = ctrlKey ? 2 : 2; if (!detectTrackpad(event)) { if (Math.abs(deltaX) === 120 || Math.abs(deltaX) === 200) { deltaX = (deltaX / ((100 / mouseFactor) * isMultipleOf(deltaX, mouseMultiples))) * Math.sign(deltaX);