question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[androidTV] Scrollview still scrollable with dpad when scrollEnabled={false}

See original GitHub issue

Description

A scrollview with the scrollEnabled prop set to false still scrolls on tv remote dpad input on androidTV. Also onScroll events are fired when the list is scrolled this way.

React Native version:

0.61.5

Expected Results

The scrollview should not scroll when scrollEnabled is set to false, regardless of touch, mouse or dpad input.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
TheDuccommented, Aug 28, 2020

@gedeagas Thanks for your comment, but that merge is also in the 0.61.5 release. Currently the executeKeyEvent method is overridden, but that does not seem to work correctly. I have overridden the dispatchKeyEvent method with the same code, and that seems to work, but needs more testing

0reactions
prakashjais99commented, Nov 19, 2020

@TheDuc have you set scrollEnabled={false} working great for me after setting this prop

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable scrollview on Android tv - Stack Overflow
however I'm still able to scroll. This class seems to only work on touch devices, with android tv I use the directional key....
Read more >
ScrollView // React Native for Web - GitHub Pages
When true , the scroll view snaps to individual items in the list when scrolling. scrollEnabled: ?boolean = true. When false , the...
Read more >
ScrollView - Android Developers
For vertical scrolling, consider NestedScrollView instead of scroll view which ... This view is invisible, but it still takes up space for layout...
Read more >
Common bugs in React Native ScrollView and how to fix them
After putting all those elements inside the ScrollView component, you can use it to scroll through them vertically (the default) or ...
Read more >
ScrollView - React Native
This can improve scrolling performance on long lists. Type, Default. bool, false. scrollEnabled ​. When false, the view cannot ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found