fix: track hover across the entire player to prevent overlay feedback flicker

This commit is contained in:
2026-10-20 22:00:31 +02:00
parent 885dea74f2
commit 7036109152
4 changed files with 117 additions and 7 deletions
+7 -7
View File
@@ -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)
}
}
}
}
}