Don't use HOpacityAnimator in ListView, flickering

This commit is contained in:
miruka 2019-11-30 16:27:34 -04:00
parent df0020e62c
commit 9e9737d8ad
2 changed files with 12 additions and 6 deletions

View File

@ -20,6 +20,7 @@
- Create room tabs brutal size transition
- Refactoring
- Use `.pragma library` for utils.js
- Room header elide detection
- Use HBox for Profile
- Banners

View File

@ -29,25 +29,30 @@ ListView {
visible: listView.interactive || ! listView.enableFlicking
}
// FIXME: HOpacityAnimator creates flickering
add: Transition {
ParallelAnimation {
HOpacityAnimator { from: 0; to: 1 }
HNumberAnimation { properties: "x,y"; from: 100 }
HNumberAnimation { property: "opacity"; from: 0; to: 1 }
HXAnimator { from: 100 }
HYAnimator { from: 100 }
}
}
move: Transition {
ParallelAnimation {
// Ensure opacity goes to 1 if add/remove transition is interrupted
HOpacityAnimator { to: 1 }
HNumberAnimation { properties: "x,y" }
HNumberAnimation { property: "opacity"; to: 1 }
HXAnimator {}
HYAnimator {}
}
}
remove: Transition {
ParallelAnimation {
HOpacityAnimator { to: 0 }
HNumberAnimation { properties: "x,y"; to: 100 }
HNumberAnimation { property: "opacity"; to: 0 }
HXAnimator { to: 100 }
HYAnimator { to: 100 }
}
}