mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
#1246 - Prevent timeline items from being computed on the main thread when instantiating the RoomTimelineController; speed up the room selection animation.
This commit is contained in:
committed by
Stefan Ceriu
parent
82981f33e9
commit
29bcc5371a
@@ -169,7 +169,7 @@ struct HomeScreenRoomCellButtonStyle: ButtonStyle {
|
||||
configuration.label
|
||||
.background(isSelected ? Color.compound.bgSubtleSecondary : Color.compound.bgCanvasDefault)
|
||||
.contentShape(Rectangle())
|
||||
.animation(.elementDefault, value: isSelected)
|
||||
.animation(isSelected ? .none : .easeOut(duration: 0.1), value: isSelected)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user