mol_plot_all 1.2.146 → 1.2.150
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 +4 -4
- package/node.esm.js.map +1 -1
- package/node.js +4 -4
- package/node.js.map +1 -1
- package/node.test.js +19 -4
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.esm.js +4 -4
- package/web.esm.js.map +1 -1
- package/web.js +4 -4
- package/web.js.map +1 -1
- package/web.test.js +15 -0
- package/web.test.js.map +1 -1
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.
|
|
3577
|
-
return this.action_type('
|
|
3578
|
-
return this.action_type('
|
|
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 -
|
|
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
|
}
|