mirror of
https://github.com/zadam/trilium.git
synced 2025-09-14 02:26:03 +08:00
zoom factor should be rounded to 1 floating point digit
This commit is contained in:
parent
420175f5ef
commit
decfeb366c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class ZoomComponent extends Component {
|
||||||
|
|
||||||
async setZoomFactorAndSave(zoomFactor) {
|
async setZoomFactorAndSave(zoomFactor) {
|
||||||
if (zoomFactor >= MIN_ZOOM && zoomFactor <= MAX_ZOOM) {
|
if (zoomFactor >= MIN_ZOOM && zoomFactor <= MAX_ZOOM) {
|
||||||
zoomFactor = Math.round(zoomFactor * 1000) / 1000;
|
zoomFactor = Math.round(zoomFactor * 10) / 10;
|
||||||
|
|
||||||
this.setZoomFactor(zoomFactor);
|
this.setZoomFactor(zoomFactor);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue