mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix zooming speed, closes #4121
This commit is contained in:
parent
ddf75cd5e5
commit
04813743e2
@ -145,8 +145,8 @@ function renderImage(entity, $renderedContent, options = {}) {
|
|||||||
if (options.imageHasZoom) {
|
if (options.imageHasZoom) {
|
||||||
libraryLoader.requireLibrary(libraryLoader.WHEEL_ZOOM).then(() => {
|
libraryLoader.requireLibrary(libraryLoader.WHEEL_ZOOM).then(() => {
|
||||||
WZoom.create(`#${$img.attr("id")}`, {
|
WZoom.create(`#${$img.attr("id")}`, {
|
||||||
maxScale: 10,
|
maxScale: 50,
|
||||||
speed: 20,
|
speed: 1.3,
|
||||||
zoomOnClick: false
|
zoomOnClick: false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user