SwiftUI ScrollView scroll gesture doesn't work on macOS but works on iOS(Mac Catalyst)

The title says it all, I'm using SwiftUI for multiplatform app, and I'm using ScrollView in it.

My app has player bar which tracks the AVPlayer's current time. I made it using .offset(y:). The problem here is that whenever I change offset, the scroll gesture suddenly doesn't work on macOS.

Video link: https://streamable.com/euzuwk

But weirdly, it works on Mac Catalyst version.

Video link: https://streamable.com/oq01mt

The source code is on GitHub.

I tried using Animation, but it made the player bar and music out of sync.

So right now I made a publisher based on AVPlayer's addPeriodicTimeObserver and receiving the time from AVPlayer but now the scroll doesn't work as expected.

@yunho0508 Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

SwiftUI ScrollView scroll gesture doesn't work on macOS but works on iOS(Mac Catalyst)
 
 
Q