Skip to content

overscrollEnabled doesn't work #800

Open
@0xtcb

Description

@0xtcb

When adding a carousel and putting overscrollEnabled on false, somehow when scrolling up (over the newest item) it still goes down and bounces back up even though i want it to be solid in its place

Describe the bug

It is essentialls the same issue from here

#552

with the difference that it is

  1. scroll only
  2. vertical

To Reproduce
Steps to reproduce the behavior:

  1. Setup a Carousel like this:
<Carousel
 key='coruse'
mode='parallax'
overscrollEnabled={false}
loop={false}
vertical
data={data}
scrollAnimationDuration={0}
renderItem={({ item, index }) => (
 .... item here ....
 )}
pagingEnabled={true}
style={styles.carousel}
/>
  1. Scroll up and see if it bounces

Expected behavior
When scrolling up (above the newest item) the item just should stay in its place as if you were not scrolling

Screenshots

When scrolling up, the carousel should stay exactly like this

Image

and not like this (bounced to the bottom)

Image

Versions (please complete the following information):

  • react: 18.2.0
  • react-native: 0.74.3
  • react-native-reanimated: ^3.16.7
  • react-native-reanimated-carousel: ^4.0.2
  • react-native-gesture-handler: ^2.21.2

Smartphone (please complete the following information):

  • OS: Android
  • Version 16

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions