mol_plot_all 1.2.146 → 1.2.147

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.test.js CHANGED
@@ -3565,9 +3565,9 @@ var $;
3565
3565
  }
3566
3566
  if (event instanceof WheelEvent) {
3567
3567
  this.pointer_events([event]);
3568
- if (event.ctrlKey)
3569
- return this.action_type('zoom');
3570
- return this.action_type('pan');
3568
+ if (event.shiftKey)
3569
+ return this.action_type('pan');
3570
+ return this.action_type('zoom');
3571
3571
  }
3572
3572
  return this.action_type('');
3573
3573
  }
@@ -3712,7 +3712,7 @@ var $;
3712
3712
  }
3713
3713
  if (action_type === 'pan') {
3714
3714
  const pan_prev = this.pan();
3715
- 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));
3715
+ const pan_next = new $.$mol_vector_2d(pan_prev.x - event.deltaX, pan_prev.y - event.deltaY);
3716
3716
  this.pan(pan_next);
3717
3717
  }
3718
3718
  }