Click the button to reset the zoom level

This commit is contained in:
SnnBcd xt
2023-09-01 03:30:39 +00:00
parent f5ddabc042
commit 21098be307
3 changed files with 11 additions and 2 deletions

View File

@@ -53,7 +53,10 @@ class ZoomComponent extends Component {
zoomInEvent() {
this.setZoomFactorAndSave(this.getCurrentZoom() + 0.1);
}
zoomResetEvent() {
this.setZoomFactorAndSave(1);
}
setZoomFactorAndSaveEvent({zoomFactor}) {
this.setZoomFactorAndSave(zoomFactor);
}