fix(player): 修复进度条拖动树稳定性
This commit is contained in:
1 parent
5af6caea6e
commit
cf6d12b7c8
6 files changed
+216
-23
No files matched your search
@@ -304,11 +304,13 @@ class _PlayerPageState extends State<PlayerPage>
|
||||
}
|
||||
|
||||
void _setScrubbing(bool value) {
|
||||
if (!mounted) return;
|
||||
if (_scrubbing == value) return;
|
||||
setState(() => _scrubbing = value);
|
||||
}
|
||||
|
||||
void _finishFeedScrub(bool wasVisible) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_scrubbing = false;
|
||||
_chromeVisible = wasVisible;
|
||||
@@ -322,6 +324,7 @@ class _PlayerPageState extends State<PlayerPage>
|
||||
}
|
||||
|
||||
void _restoreFeedChrome() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_scrubbing = false;
|
||||
_chromeVisible = true;
|
||||
|
||||
Reference in new issue
Block a user