fix: track hover across the entire player to prevent overlay feedback flicker
This commit is contained in:
@@ -2838,6 +2838,13 @@ private struct PlayerContent: View {
|
||||
.transition(.opacity)
|
||||
}
|
||||
}
|
||||
.onContinuousHover { phase in
|
||||
switch phase {
|
||||
case .active:
|
||||
model.setPointerInsideWindow(true)
|
||||
case .ended: model.setPointerInsideWindow(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var windowDragBackground: some View {
|
||||
@@ -3024,13 +3031,6 @@ private struct PlayerContent: View {
|
||||
dropTargeted = $0
|
||||
model.revealControls()
|
||||
}
|
||||
.onContinuousHover { phase in
|
||||
switch phase {
|
||||
case .active:
|
||||
model.setPointerInsideWindow(true)
|
||||
case .ended: model.setPointerInsideWindow(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user