Skip to content

Commit ba69692

Browse files
committed
fix web flicker
1 parent 211ec96 commit ba69692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/CellRendererComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ function CellRendererComponent<T>(props: Props<T>) {
6060
// When activeKey becomes null at the end of a drag and the list reorders,
6161
// the animated style may apply before the next paint, causing a flicker.
6262
// Solution is to hold over the last animated value until the next onLayout.
63-
if (translate.value) {
63+
// (Not required in web)
64+
if (translate.value && !isWeb) {
6465
heldTanslate.value = translate.value;
6566
}
6667
const t = activeKey ? translate.value : heldTanslate.value;

0 commit comments

Comments
 (0)