Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted Flatlist scrolling wrong direction when flicking at bottom #1209

Closed
hardcodet opened this issue Oct 13, 2020 · 4 comments
Closed

Inverted Flatlist scrolling wrong direction when flicking at bottom #1209

hardcodet opened this issue Oct 13, 2020 · 4 comments
Labels
Area: Gesture handlers This issue is related to problems with gesture handlers BugBash 31.03 Platform: Android This issue is specific to Android

Comments

@hardcodet
Copy link

hardcodet commented Oct 13, 2020

This may be a regression of #171

Repro (Android 10):

Scroll to the end (bottom) of an inverted FlatList. When at the end, perform a few flicks further towards the bottom. Expected behavior here is that nothing would happen. What happens though is that the list suddenly scrolls back up.

Workaround: Replacing RNGH FlatList with RN FlatList fixes the issue.

Package versions

RNGH: 1.7.0
Expo SDK 39

@jakub-gonet
Copy link
Member

Could you please provide some small repro?

@jakub-gonet jakub-gonet added Platform: Android This issue is specific to Android Area: Gesture handlers This issue is related to problems with gesture handlers labels Nov 2, 2020
@kirillpisarev
Copy link

Have the same issue with
"react-native-gesture-handler": "^1.8.0"
"react-native": "0.63.2"

inverted FlatList from react-native works fine as mentioned above.

code to reproduce:

import React from "react"
import { View } from "react-native"
import { FlatList } from "react-native-gesture-handler"

export const MessageList = () => {
	return (
		<FlatList
			inverted
			data={Array(50).fill(1)}
			renderItem={() => <View style={{ height: 100, backgroundColor: "red" }} />}
		/>
	)
}

illustration what happens (i'm trying to scroll down):

1

@nickksm
Copy link

nickksm commented Dec 7, 2020

Same issue here like @kirillpisarev

@tomekzaw
Copy link
Member

Hello! Did you manage to resolve this issue? If not, can you please check if this issue still occurs on the latest version of react-native-gesture-handler and some newer version of react-native?

After activation, NativeViewGestureHandler will send touch events directly to ScrollView from react-native so the workaround from facebook/react-native#21117 should be applied automatically. Nevertheless, we will need to delve into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Gesture handlers This issue is related to problems with gesture handlers BugBash 31.03 Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

6 participants