ubuntu / app-center

App Store for Ubuntu made with Flutter 🧡 💙
GNU General Public License v3.0
633 stars 116 forks source link

Scrolling does not work with touch screen #1470

Open python-destroyer opened 11 months ago

python-destroyer commented 11 months ago

Scrolling in App Center does not work on touchscreen both with one and two fingers. Instead items are selected/deselected.

Device: Surface Go 1 System: Ubuntu 23.10 App Center: 1.0.0-Alpha

scroll

Feichtmeier commented 11 months ago

@d-loose, This should be fixable with

scrollBehavior: const MaterialScrollBehavior().copyWith(
              dragDevices: {
                PointerDeviceKind.mouse,
                PointerDeviceKind.touch,
                PointerDeviceKind.stylus,
                PointerDeviceKind.unknown,
                PointerDeviceKind.trackpad,
              },
            ),

in MaterialApp

Or, if you already did this, eventually this gridview incorporates a listview and something else, in this case you need to set either of the scroll views to NeverScrollableScrollPhysics

sahincapiec commented 9 months ago

Same issue.

Device: HP ENVY x360 Convertible 15z-ee100 System: Ubuntu 23.10 App Center: 1.0.0-Alpha

wengahias commented 8 months ago

it's the same Problem with:

Surface Go 4 - Ubuntu 23.10

@Feichtmeier : is your patch applicable without building from source ? could not find a file called "MaterialApp".

anasereijo commented 1 month ago

@spydon is this something you can look at next?