mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 03:58:53 +08:00
round zoom factor
This commit is contained in:
parent
140f0a5dbd
commit
42daf181d3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue