File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30206,9 +30206,9 @@ var $;
30206
30206
const action_type = this.event_eat(event);
30207
30207
if (action_type === 'zoom') {
30208
30208
const zoom_prev = this.zoom() || 0.001;
30209
- const zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
30209
+ let zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
30210
+ zoom_next = this.zoom(zoom_next);
30210
30211
const mult = zoom_next / zoom_prev;
30211
- this.zoom(zoom_next);
30212
30212
const pan_prev = this.pan();
30213
30213
const center = this.pointer_center();
30214
30214
const pan_next = pan_prev.multed0(mult).added1(center.multed0(1 - mult));
Original file line number Diff line number Diff line change @@ -30206,9 +30206,9 @@ var $;
30206
30206
const action_type = this.event_eat(event);
30207
30207
if (action_type === 'zoom') {
30208
30208
const zoom_prev = this.zoom() || 0.001;
30209
- const zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
30209
+ let zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
30210
+ zoom_next = this.zoom(zoom_next);
30210
30211
const mult = zoom_next / zoom_prev;
30211
- this.zoom(zoom_next);
30212
30212
const pan_prev = this.pan();
30213
30213
const center = this.pointer_center();
30214
30214
const pan_next = pan_prev.multed0(mult).added1(center.multed0(1 - mult));
You can’t perform that action at this time.
0 commit comments