Skip to content

Commit

Permalink
interrupt on scene reset, #418 #410
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 1, 2024
1 parent e0cfc70 commit b1e3776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/buoyancy/model/applications/BuoyancyApplicationsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ export default class BuoyancyApplicationsModel extends DensityBuoyancyModel {
*/
public resetBoatAndBlockPosition(): void {

// Interrupt first in case they are currently being dragged,
this.block.interruptedEmitter.emit();
this.boat.interruptedEmitter.emit();

this.block.resetPosition();
this.boat.resetPosition();

Expand Down

0 comments on commit b1e3776

Please sign in to comment.