Browse Source

update aframe lib

Nikolay Suslov 1 month ago
parent
commit
f4c17c0801

+ 10 - 1
public/drivers/model/aframe/aframe-master.js

@@ -65042,6 +65042,7 @@ module.exports.Component = registerComponent('wasd-controls', {
 
     // Bind methods and add event listeners.
     this.onBlur = bind(this.onBlur, this);
+    this.onContextMenu = bind(this.onContextMenu, this);
     this.onFocus = bind(this.onFocus, this);
     this.onKeyDown = bind(this.onKeyDown, this);
     this.onKeyUp = bind(this.onKeyUp, this);
@@ -65156,6 +65157,7 @@ module.exports.Component = registerComponent('wasd-controls', {
   })(),
 
   attachVisibilityEventListeners: function () {
+    window.oncontextmenu = this.onContextMenu;
     window.addEventListener('blur', this.onBlur);
     window.addEventListener('focus', this.onFocus);
     document.addEventListener('visibilitychange', this.onVisibilityChange);
@@ -65177,6 +65179,13 @@ module.exports.Component = registerComponent('wasd-controls', {
     window.removeEventListener('keyup', this.onKeyUp);
   },
 
+  onContextMenu: function () {
+    var keys = Object.keys(this.keys);
+    for (var i = 0; i < keys.length; i++) {
+      delete this.keys[keys[i]];
+    }
+  },
+
   onBlur: function () {
     this.pause();
   },
@@ -71409,7 +71418,7 @@ _dereq_('./core/a-mixin');
 _dereq_('./extras/components/');
 _dereq_('./extras/primitives/');
 
-console.log('A-Frame Version: 1.1.0 (Date 2020-12-30, Commit #579473b8)');
+console.log('A-Frame Version: 1.1.0 (Date 2021-01-11, Commit #60a23326)');
 console.log('THREE Version (https://github.com/supermedium/three.js):',
             pkg.dependencies['super-three']);
 console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']);

File diff suppressed because it is too large
+ 0 - 0
public/drivers/model/aframe/aframe-master.js.map


File diff suppressed because it is too large
+ 0 - 0
public/drivers/model/aframe/aframe-master.min.js


File diff suppressed because it is too large
+ 0 - 0
public/drivers/model/aframe/aframe-master.min.js.map


Some files were not shown because too many files changed in this diff