Skip to content

Commit fec444b

Browse files
authored
Fix Carousel jerks in some cases (Jira 372) (#729)
1 parent f48d92b commit fec444b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/carousel/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ export default class Carousel extends BaseComponent {
195195
}
196196

197197
updateOffset = (animated = false) => {
198-
const centerOffset = Constants.isIOS && this.shouldUsePageWidth() ?
199-
(Constants.screenWidth - this.state.pageWidth) / 2 : 0;
200-
const x = presenter.calcOffset(this.getThemeProps(), this.state) - centerOffset;
198+
const x = presenter.calcOffset(this.getThemeProps(), this.state);
201199

202200
if (this.carousel) {
203201
this.carousel.current.scrollTo({x, animated});

0 commit comments

Comments
 (0)