Viewer fixes (#495)

This commit is contained in:
Cristian Balas
2021-12-13 18:06:09 +02:00
committed by GitHub
parent a55954baba
commit 1f378b9823
7 changed files with 42 additions and 29 deletions
@@ -97,6 +97,7 @@ export default class SectionBox {
this.display.add( this.controls )
this.controls.addEventListener( 'change', this._draggingChangeHandler.bind( this ) )
this.controls.addEventListener( 'dragging-changed', ( event ) => {
if ( !this.display.visible ) return
let val = !!event.value
if( val ) {
this.dragging = val
@@ -114,6 +115,7 @@ export default class SectionBox {
}
_draggingChangeHandler( ) {
if ( !this.display.visible ) return
this.boxHelper.update()
this._generateOrUpdatePlanes()