meliorence/react-native-snap-carousel

Snapping between items is very jerky

Open

#189 geöffnet am 18. Okt. 2017

Auf GitHub ansehen
 (30 Kommentare) (19 Reaktionen) (0 zugewiesene Personen)JavaScript (10.045 Stars) (2.223 Forks)batch import
*enhancementhelp wantedreact-native bug

Beschreibung

Hi guys,

I've searched around a lot and haven't found any information about this, but even the simplest of tests with the carousel I find are very jerky.

When swiping between items in the carousel, I notice that as soon as I release my finger, the speed of the snap changes. This means when I quickly flick to the next item, it instantly slows the snap speed so it looks like the swipe "hit a wall."

I'm tested this using Expo on an iPhone 7.

I've compared this to the native ScrollView with pagingEnabled or even snapToInterval and that has a much smoother effect.

Is this purely because the "snapping" action can't work out how much force a user swiped with? Or am I completely missing something?

I can probably put together an Expo snack to demonstrate the issue if need be.

Contributor Guide