Skip to content

Commit

Permalink
aviod animated in native when dynamic update
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jul 24, 2023
1 parent 0109bb3 commit acf0547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class AttachmentCarousel extends React.Component {
if (!this.scrollRef || !this.scrollRef.current) {
return;
}
this.scrollRef.current.scrollToIndex({index: this.state.page, animated: this.canUseTouchScreen});
this.scrollRef.current.scrollToIndex({index: this.state.page, animated: false});
});
}
}
Expand Down

0 comments on commit acf0547

Please sign in to comment.