This works around a bug or strange behavior in QtQuick Controls Slider where when reducing the maximumValue, the value is clamped to it (ie. reduced to it) but when increasing it again, it gets its old value back up until maximumValue.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R120:a57869064cf9: [Media Controller] Fix unwanted seeking
R871:a57869064cf9: [Media Controller] Fix unwanted seeking
slider.maximumValue = 1000 slider.value = 1000 // value is now 1000 slider.maximumValue = 0 // value is now 0 slider.maximumValue = 500 // value is now 500! slider.maximumValue = 1500 // value is now 1000
I started one song song, seeked all the way to the end, it stopped. I started again.
Previously it would immediately seek to the end of the track. Now it would just carry on as normal.
If you drag the slider all the way to the end and just keep it there and wiggle the mouse around you can still cause havoc but that's nothing that'll happen during normal use :P
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.