mirror of
https://github.com/poanse/obsidian-taskmap.git
synced 2026-07-22 06:05:58 +00:00
adjusted default zoom sensitivity for touchpad
This commit is contained in:
parent
4fd97a3e13
commit
fa3878ae5e
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@
|
|||
let scaleConstant: number;
|
||||
const isTouchpad = Math.abs(e.deltaY) < 50;
|
||||
if (isTouchpad) {
|
||||
scaleConstant = 0.05 * (parseNumber(context.plugin.settings.zoomSensitivityTouchpad) ?? 100) / 100;
|
||||
scaleConstant = 0.1 * (parseNumber(context.plugin.settings.zoomSensitivityTouchpad) ?? 100) / 100;
|
||||
} else {
|
||||
scaleConstant = 0.5 * (parseNumber(context.plugin.settings.zoomSensitivityMouse) ?? 100) / 100;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue