From c22323c6e1e3267ad6774bcf4f2972aaced51ada Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:30:37 -0800 Subject: [PATCH] toolbar: make visible when moving and reset idle timer --- Platform/iOS/Display/VMToolbarView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Platform/iOS/Display/VMToolbarView.swift b/Platform/iOS/Display/VMToolbarView.swift index e3bf1b8f2..55df1aa2f 100644 --- a/Platform/iOS/Display/VMToolbarView.swift +++ b/Platform/iOS/Display/VMToolbarView.swift @@ -64,7 +64,7 @@ struct VMToolbarView: View { } private var toolbarToggleOpacity: Double { - if isCollapsed { + if isCollapsed && !isMoving { if !state.isUserInteracting { return 0 } else if isIdle { @@ -150,6 +150,7 @@ struct VMToolbarView: View { isMoving = false dragPosition = position(for: geometry) } + resetIdle() } ) .onChange(of: state.isRunning) { running in