mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Profile: Fix redundant scale animation
This commit is contained in:
parent
08b062e40d
commit
952d44e7d3
@ -92,6 +92,7 @@ const Transition: FC<TransitionProps> = ({
|
||||
const childElements = container.children;
|
||||
if (childElements.length === 1 && !activeKeyChanged) {
|
||||
if (name.startsWith('slide-optimized')) {
|
||||
(childElements[0] as HTMLElement).style.transition = 'none';
|
||||
(childElements[0] as HTMLElement).style.transform = 'translate3d(0, 0, 0)';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user