mol_plot_all 1.2.1312 → 1.2.1313

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/node.js CHANGED
@@ -3990,9 +3990,9 @@ var $;
3990
3990
  const action_type = this.event_eat(event);
3991
3991
  if (action_type === 'zoom') {
3992
3992
  const zoom_prev = this.zoom() || 0.001;
3993
- const zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
3993
+ let zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
3994
+ zoom_next = this.zoom(zoom_next);
3994
3995
  const mult = zoom_next / zoom_prev;
3995
- this.zoom(zoom_next);
3996
3996
  const pan_prev = this.pan();
3997
3997
  const center = this.pointer_center();
3998
3998
  const pan_next = pan_prev.multed0(mult).added1(center.multed0(1 - mult));