SwiftUIPager icon indicating copy to clipboard operation
SwiftUIPager copied to clipboard

[BUG] tvOS scrolling not working

Open HenryGlendening opened this issue 2 years ago • 1 comments

Describe the bug Regression of issue #237:

Unable to scroll on tvOS even though package claims to be tvOS compatible. The directional buttons on the device's newer Siri remote allow navigating between the Pager's pages, however, performing swipe gestures on either Siri remote does not cause the Pager to respond and navigate.

This affects the Apple TV 4K and Apple TV HD devices and both kinds of Apple TV Siri remotes.

To Reproduce Implement a basic example with focusable areas, such as NavigationLink

Expected behavior Expected to scroll left or right using Apple TV Remote, just like on a standard ScrollView.

Screenshots / Videos On the screenshot, left item is in focus. It is not centered and unable to scroll to the left, beyond this item (there a total of 5 in the pager)

Environment

  • tvOS 16.0, tvOS 15.5.1
  • AppleTV 4K, AppleTV HD
  • SwiftUIPager version: 2.5.0

HenryGlendening avatar Sep 25 '22 22:09 HenryGlendening

Hi @HenryGlendening , We use this lib in our project, there isn't any error about your situation. but the page width in our pager and the screen width is the same. If you try something like that, will it work?

metin-atalay avatar Nov 24 '22 15:11 metin-atalay