Controls updates fixes

This commit is contained in:
Arkadiusz Fal
2022-08-23 23:29:50 +02:00
parent 711208d9b7
commit 5f50797b54
5 changed files with 25 additions and 11 deletions

View File

@@ -23,9 +23,9 @@ struct TimelineView: View {
@State private var size = CGSize.zero
@State private var tooltipSize = CGSize.zero
@State private var dragging = false { didSet {
if dragging {
if dragging, player.backend.controlsUpdates {
player.backend.stopControlsUpdates()
} else {
} else if !dragging, !player.backend.controlsUpdates {
player.backend.startControlsUpdates()
}
}}