Skip to content

Commit

Permalink
toolbar: make visible when moving and reset idle timer
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Jan 11, 2022
1 parent 0a2e1f2 commit c22323c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Platform/iOS/Display/VMToolbarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct VMToolbarView: View {
}

private var toolbarToggleOpacity: Double {
if isCollapsed {
if isCollapsed && !isMoving {
if !state.isUserInteracting {
return 0
} else if isIdle {
Expand Down Expand Up @@ -150,6 +150,7 @@ struct VMToolbarView: View {
isMoving = false
dragPosition = position(for: geometry)
}
resetIdle()
}
)
.onChange(of: state.isRunning) { running in
Expand Down

0 comments on commit c22323c

Please sign in to comment.