zincjs 1.12.0 → 1.12.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zincjs",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "ZincJS (Web-based-Zinc-Visualisation)",
5
5
  "main": "build/zinc.js",
6
6
  "directories": {
package/src/controls.js CHANGED
@@ -546,7 +546,9 @@ const CameraControls = function ( object, domElement, renderer, scene ) {
546
546
  this.pointer_y = this.pointer_y + changes;
547
547
  }
548
548
  }
549
- event.preventDefault();
549
+ if (Object.values(KEYBOARD).includes(event.keyCode)) {
550
+ event.preventDefault();
551
+ }
550
552
  }
551
553
 
552
554
  const onDocumentKeyupEvent = event => {
@@ -73,7 +73,7 @@ exports.Label = function (textIn, colour) {
73
73
  * Free up the memory
74
74
  */
75
75
  this.dispose = () => {
76
- sprite.dispose();
76
+ //sprite.dispose();
77
77
  }
78
78
 
79
79
  /**