round zoom factor

This commit is contained in:
zadam 2020-10-10 20:12:39 +02:00
parent 140f0a5dbd
commit 42daf181d3

View file

@ -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);