meliorence/react-native-snap-carousel

Snapping between items is very jerky

Open

#189 创建于 2017年10月18日

在 GitHub 查看
 (30 评论) (19 反应) (0 负责人)JavaScript (10,045 star) (2,223 fork)batch import
*enhancementhelp wantedreact-native bug

描述

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.

贡献者指南

Snapping between items is very jerky · meliorence/react-native-snap-carousel#189 | Good First Issue