Explorar el Código

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

Guide hace 6 años
padre
commit
811faf8d81
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gui/src/2D/controls/scrollViewers/scrollViewer.ts

+ 1 - 1
gui/src/2D/controls/scrollViewers/scrollViewer.ts

@@ -340,7 +340,7 @@ export class ScrollViewer extends Rectangle {
 
     /** @hidden */
     private _attachWheel() {
-        if (this._onPointerObserver) {
+        if (!this._host || this._onPointerObserver) {
             return;
         }