We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23e7555 + db27279 commit aeaa56aCopy full SHA for aeaa56a
src/ScrollViewGesture.tsx
@@ -202,7 +202,11 @@ const IScrollViewGesture: React.FC<Props> = (props) => {
202
!infinite &&
203
(translation.value > 0 || translation.value < -ctx.max)
204
) {
205
- panTranslation = panTranslation * 0.5;
+ const boundary = translation.value > 0 ? 0 : -ctx.max;
206
+ const fixed = boundary - ctx.panOffset;
207
+ const dynamic = panTranslation - fixed;
208
+ translation.value = boundary + dynamic * 0.5;
209
+ return;
210
}
211
212
translation.value = ctx.panOffset + panTranslation;
0 commit comments