meliorence/react-native-snap-carousel

Snapping between items is very jerky

Open

#189 opened on Oct 18, 2017

View on GitHub
 (30 comments) (19 reactions) (0 assignees)JavaScript (10,045 stars) (2,223 forks)batch import
*enhancementhelp wantedreact-native bug

Description

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