Skip to content

Commit

Permalink
remove unnecessary syncs
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-donarise committed Jul 11, 2024
1 parent 621dd5c commit d2921d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions player/player.view.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ namespace $.$$ {

@ $mol_action
vibration_start( phonon: number[][] ) {
this.$.$mol_wire_sync( this ).vibration_end()
this.vibration_end()

const labels = this.overlay_box([0,0,0]).children
if( phonon.length !== labels.length) {
Expand Down Expand Up @@ -549,9 +549,9 @@ namespace $.$$ {
vibration_active( next?: boolean ) {
const phonon = this.phonon()
if( next ) {
if( phonon ) this.$.$mol_wire_sync( this ).vibration_start( phonon )
if( phonon ) this.vibration_start( phonon )
} else {
this.$.$mol_wire_sync( this ).vibration_end()
this.vibration_end()
}
return next ?? false
}
Expand All @@ -571,8 +571,8 @@ namespace $.$$ {
@ $mol_mem
vibration_restart() {
this.cell_translations()
this.$.$mol_wire_sync( this ).vibration_active( false )
this.$.$mol_wire_sync( this ).vibration_active( true )
this.vibration_active( false )
this.vibration_active( true )
}

@ $mol_mem
Expand Down

0 comments on commit d2921d9

Please sign in to comment.