File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export class NgtsHtmlWrapper {
138
138
139
139
private store = injectNgtStore ( ) ;
140
140
private gl = this . store . select ( 'gl' ) ;
141
- private events = this . store . select ( 'events' ) ;
141
+ private connected = this . store . select ( 'events' , 'connected' , { equal : Object . is } ) ;
142
142
private viewport = this . store . select ( 'viewport' ) ;
143
143
private scene = this . store . select ( 'scene' ) ;
144
144
private camera = this . store . select ( 'camera' ) ;
@@ -160,7 +160,7 @@ export class NgtsHtmlWrapper {
160
160
private target = computed ( ( ) => {
161
161
const portalElement = this . portalElement ( ) ;
162
162
if ( portalElement ) return portalElement ;
163
- const connected = this . events ( ) . connected ;
163
+ const connected = this . connected ( ) ;
164
164
if ( connected ) return connected as HTMLElement ;
165
165
return this . gl ( ) . domElement . parentElement ! ;
166
166
} ) ;
You can’t perform that action at this time.
0 commit comments