mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Fix player gesture
This commit is contained in:
		@@ -213,7 +213,7 @@ struct VideoPlayerView: View {
 | 
			
		||||
                            hovering ? playerControls.show() : playerControls.hide()
 | 
			
		||||
                        }
 | 
			
		||||
                        #if os(iOS)
 | 
			
		||||
                        .gesture(isPlayerDragGestureEnabled ? playerDragGesture : nil)
 | 
			
		||||
                        .gesture(playerControls.presentingOverlays ? nil : playerDragGesture)
 | 
			
		||||
                        #elseif os(macOS)
 | 
			
		||||
                        .onAppear(perform: {
 | 
			
		||||
                            NSEvent.addLocalMonitorForEvents(matching: [.mouseMoved]) {
 | 
			
		||||
@@ -361,10 +361,6 @@ struct VideoPlayerView: View {
 | 
			
		||||
                }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        var isPlayerDragGestureEnabled: Bool {
 | 
			
		||||
            !player.controls.presentingDetailsOverlay && !player.controls.presentingDetailsOverlay
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        var controlsTopPadding: Double {
 | 
			
		||||
            guard fullScreenLayout else { return 0 }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user