meliorence/react-native-snap-carousel

Snapping between items is very jerky

开放

#189 创建于 2017年10月18日

 (30 条评论) (19 个反应) (0 位负责人)JavaScript (2,223 个派生)batch import
*enhancementhelp wantedreact-native bug

仓库指标

星标
 (10,045 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南