[DE] For Bug 47433: min zoom value = 10%

This commit is contained in:
Julia Radzhabova 2022-08-08 13:51:48 +03:00
parent 40e5fa6dbf
commit c47703abfc

View file

@ -209,7 +209,9 @@ define([
},
applyZoom: function (value) {
var val = Math.max(25, Math.min(500, value));
var val = Math.max(10, Math.min(500, value));
if (this._state.zoomValue === val)
this.view.cmbZoom.setValue(this._state.zoomValue, this._state.zoomValue + '%');
this.api.zoom(val);
Common.NotificationCenter.trigger('edit:complete', this.view);
},