meliorence/react-native-snap-carousel

Snapping between items is very jerky

Open

#189 aperta il 18 ott 2017

Vedi su GitHub
 (30 commenti) (19 reazioni) (0 assegnatari)JavaScript (2223 fork)batch import
*enhancementhelp wantedreact-native bug

Metriche repository

Star
 (10.045 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor