We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48d92b commit fec444bCopy full SHA for fec444b
src/components/carousel/index.js
@@ -195,9 +195,7 @@ export default class Carousel extends BaseComponent {
195
}
196
197
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;
+ const x = presenter.calcOffset(this.getThemeProps(), this.state);
201
202
if (this.carousel) {
203
this.carousel.current.scrollTo({x, animated});
0 commit comments