Nikolay Suslov преди 4 години
родител
ревизия
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']);

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
public/drivers/model/aframe/aframe-master.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
public/drivers/model/aframe/aframe-master.min.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
public/drivers/model/aframe/aframe-master.min.js.map


Някои файлове не бяха показани, защото твърде много файлове са промени