Skip to content

Commit

Permalink
fix: pass in newPosition to sound-position-progress if available
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Jul 11, 2023
1 parent f11d812 commit cfaf2a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ember-stereo/src/modifiers/sound-position-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export default class SoundPositionProgressModifier extends Modifier {
]);

if (result?.sound) {
this.modifyPosition({ sound: result.sound });
this.modifyPosition({
sound: result.sound,
position: result?.newPosition,
});
} else if (this.loadedSound) {
this.modifyPosition({ sound: this.loadedSound });
}
Expand Down

0 comments on commit cfaf2a3

Please sign in to comment.