mol_plot_all 1.2.1312 → 1.2.1314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web.mjs CHANGED
@@ -3299,9 +3299,9 @@ var $;
3299
3299
  const action_type = this.event_eat(event);
3300
3300
  if (action_type === 'zoom') {
3301
3301
  const zoom_prev = this.zoom() || 0.001;
3302
- const zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
3302
+ let zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
3303
+ zoom_next = this.zoom(zoom_next);
3303
3304
  const mult = zoom_next / zoom_prev;
3304
- this.zoom(zoom_next);
3305
3305
  const pan_prev = this.pan();
3306
3306
  const center = this.pointer_center();
3307
3307
  const pan_next = pan_prev.multed0(mult).added1(center.multed0(1 - mult));