Wow that was a quick one
This commit is contained in:
parent
5ac4f6dcf9
commit
85387a0a9b
@ -561,6 +561,7 @@ impl PlayerExt for PlayerWidget {
|
|||||||
let duration = self.player.get_duration();
|
let duration = self.player.get_duration();
|
||||||
let destination = match direction {
|
let destination = match direction {
|
||||||
SeekDirection::Backwards if position >= offset => Some(position - offset),
|
SeekDirection::Backwards if position >= offset => Some(position - offset),
|
||||||
|
SeekDirection::Backwards if position < offset => Some(ClockTime::from_seconds(0)),
|
||||||
SeekDirection::Forward if !duration.is_none() && position + offset <= duration => {
|
SeekDirection::Forward if !duration.is_none() && position + offset <= duration => {
|
||||||
Some(position + offset)
|
Some(position + offset)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user