mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
zoom factor should be rounded to 1 floating point digit
This commit is contained in:
parent
420175f5ef
commit
decfeb366c
@ -31,7 +31,7 @@ class ZoomComponent extends Component {
|
||||
|
||||
async setZoomFactorAndSave(zoomFactor) {
|
||||
if (zoomFactor >= MIN_ZOOM && zoomFactor <= MAX_ZOOM) {
|
||||
zoomFactor = Math.round(zoomFactor * 1000) / 1000;
|
||||
zoomFactor = Math.round(zoomFactor * 10) / 10;
|
||||
|
||||
this.setZoomFactor(zoomFactor);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user