mol_plot_all 1.2.145 → 1.2.149

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.js CHANGED
@@ -3280,9 +3280,9 @@ var $;
3280
3280
  }
3281
3281
  if (event instanceof WheelEvent) {
3282
3282
  this.pointer_events([event]);
3283
- if (event.ctrlKey)
3284
- return this.action_type('zoom');
3285
- return this.action_type('pan');
3283
+ if (event.shiftKey)
3284
+ return this.action_type('pan');
3285
+ return this.action_type('zoom');
3286
3286
  }
3287
3287
  return this.action_type('');
3288
3288
  }
@@ -3427,7 +3427,7 @@ var $;
3427
3427
  }
3428
3428
  if (action_type === 'pan') {
3429
3429
  const pan_prev = this.pan();
3430
- 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));
3430
+ const pan_next = new $.$mol_vector_2d(pan_prev.x - event.deltaX, pan_prev.y - event.deltaY);
3431
3431
  this.pan(pan_next);
3432
3432
  }
3433
3433
  }