fix: animate zoomreset to remove traces of previous document zoom level

- sync zoom options

Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I1dc7847e21ab3cb56b9ec01a1a8f577bb26366d1
This commit is contained in:
Parth Raiyani 2024-07-16 01:10:56 +05:30 committed by Szymon Kłos
parent ea69f42fd3
commit d3be8fbb30
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ class StatusBar extends JSDialog.Toolbar {
{ id: 'zoom100', text: '100', scale: 10},
{ id: 'zoom120', text: '120', scale: 11},
{ id: 'zoom150', text: '150', scale: 12},
{ id: 'zoom175', text: '175', scale: 13},
{ id: 'zoom170', text: '170', scale: 13},
{ id: 'zoom200', text: '200', scale: 14},
{ id: 'zoom235', text: '235', scale: 15},
{ id: 'zoom280', text: '280', scale: 16},

View file

@ -173,7 +173,7 @@ class Dispatcher {
app.map.zoomOut(1, null, true /* animate? */);
};
this.actionsMap['zoomreset'] = () => {
app.map.setZoom(app.map.options.zoom);
app.map.setZoom(app.map.options.zoom, null, true);
};
this.actionsMap['searchprev'] = () => {