From 42daf181d304e96d54134a0b7eb79c089d4901a4 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 10 Oct 2020 20:12:39 +0200 Subject: [PATCH] round zoom factor --- src/public/app/services/zoom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/services/zoom.js b/src/public/app/services/zoom.js index d5b4b4eb6..a45de238a 100644 --- a/src/public/app/services/zoom.js +++ b/src/public/app/services/zoom.js @@ -25,6 +25,8 @@ class ZoomService extends Component { async setZoomFactorAndSave(zoomFactor) { if (zoomFactor >= MIN_ZOOM && zoomFactor <= MAX_ZOOM) { + zoomFactor = Math.round(zoomFactor * 10) / 10; + this.setZoomFactor(zoomFactor); await options.save('zoomFactor', zoomFactor);