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/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/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.
|
|
3284
|
-
return this.action_type('
|
|
3285
|
-
return this.action_type('
|
|
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 -
|
|
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
|
}
|