mol_plot_all 1.2.1312 → 1.2.1314
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 +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +2 -2
- package/web.js.map +1 -1
- package/web.mjs +2 -2
package/web.mjs
CHANGED
|
@@ -3299,9 +3299,9 @@ var $;
|
|
|
3299
3299
|
const action_type = this.event_eat(event);
|
|
3300
3300
|
if (action_type === 'zoom') {
|
|
3301
3301
|
const zoom_prev = this.zoom() || 0.001;
|
|
3302
|
-
|
|
3302
|
+
let zoom_next = zoom_prev * (1 - .001 * Math.min(event.deltaY, 100));
|
|
3303
|
+
zoom_next = this.zoom(zoom_next);
|
|
3303
3304
|
const mult = zoom_next / zoom_prev;
|
|
3304
|
-
this.zoom(zoom_next);
|
|
3305
3305
|
const pan_prev = this.pan();
|
|
3306
3306
|
const center = this.pointer_center();
|
|
3307
3307
|
const pan_next = pan_prev.multed0(mult).added1(center.multed0(1 - mult));
|