Skip to content

Commit af5916b

Browse files
committed
Add animation
1 parent 198d3d2 commit af5916b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CodeEdit/Features/Editor/JumpBar/Views/EditorJumpBarComponent.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ struct EditorJumpBarComponent: View {
8888
}
8989
.padding(.vertical, 3)
9090
.onHover { hover in
91-
isHovering = hover
91+
withAnimation(.easeInOut(duration: 0.2)) {
92+
isHovering = hover
93+
}
9294
}
9395
.onLongPressGesture(minimumDuration: 0) {
9496
button.performClick(nil)

0 commit comments

Comments
 (0)