Skip to content

Commit 3745b85

Browse files
committed
fix: Adjust OpenSeadragon animation and zoom settings for improved performance and better user experience
1 parent 352bade commit 3745b85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/libs/editor/src/components/ImageView/setOpenSeaDragon.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,15 @@ function createViewportInfoDisplay(container: Element, mpp: number | null) {
279279
navigatorAutoResize: true,
280280
navigatorAutoFade: true,
281281
showRotationControl: true,
282-
animationTime: 1,
282+
animationTime: 0.5,
283283
imageLoaderLimit: 6,
284-
springStiffness: 3,
284+
springStiffness: 7,
285285
blendTime: 0.1,
286286
constrainDuringPan: true,
287287
maxZoomPixelRatio: 2,
288288
minZoomImageRatio: 1,
289289
visibilityRatio: 1,
290-
zoomPerScroll: 1.2, // Controls zoom speed (lower = slower, higher = faster)
290+
zoomPerScroll: 1.1, // Controls zoom speed (lower = slower, higher = faster)
291291
timeout: 120000,
292292
showNavigationControl: false,
293293
setMouseNavEnabled: true,

0 commit comments

Comments
 (0)