mol_plot_all 1.2.144 → 1.2.148

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.esm.js CHANGED
@@ -3573,9 +3573,9 @@ var $;
3573
3573
  }
3574
3574
  if (event instanceof WheelEvent) {
3575
3575
  this.pointer_events([event]);
3576
- if (event.ctrlKey)
3577
- return this.action_type('zoom');
3578
- return this.action_type('pan');
3576
+ if (event.shiftKey)
3577
+ return this.action_type('pan');
3578
+ return this.action_type('zoom');
3579
3579
  }
3580
3580
  return this.action_type('');
3581
3581
  }
@@ -3720,7 +3720,7 @@ var $;
3720
3720
  }
3721
3721
  if (action_type === 'pan') {
3722
3722
  const pan_prev = this.pan();
3723
- const pan_next = new $.$mol_vector_2d(pan_prev.x - (event.shiftKey ? event.deltaY : event.deltaX), pan_prev.y - (event.shiftKey ? event.deltaX : event.deltaY));
3723
+ const pan_next = new $.$mol_vector_2d(pan_prev.x - event.deltaX, pan_prev.y - event.deltaY);
3724
3724
  this.pan(pan_next);
3725
3725
  }
3726
3726
  }