mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (image): zoom ux
This commit is contained in:
parent
ca907321eb
commit
2429a3ba83
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ function builder({ $img }) {
|
||||||
let scale = 0;
|
let scale = 0;
|
||||||
if (["+", "ArrowUp"].indexOf(key) !== -1) scale = 3/2;
|
if (["+", "ArrowUp"].indexOf(key) !== -1) scale = 3/2;
|
||||||
else if (["-", "ArrowDown"].indexOf(key) !== -1) scale = 2/3;
|
else if (["-", "ArrowDown"].indexOf(key) !== -1) scale = 2/3;
|
||||||
return { clientX, clientY, scale };
|
return { clientX, clientY, scale, duration: 100 };
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
// pinch zoom
|
// pinch zoom
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue