Skip to content

Improve interaction of app grid actions

Carlos Garnacho requested to merge wip/carlosg/app-grid-gestures into master

From the main commit:

    appDisplay: Improve app grid interaction for touch devices
    
    Currently, handling of touch devices in the app grid is a bit awkward,
    paging by dragging the view can only happen if started from the gaps
    between icons, trying to drag from an icon will trigger DnD, and popping
    up the menu takes over it all.
    
    Instead, have the app grid actions play this game of rock-paper-scissors:
    - Fast swipes on icons trigger scrolling, beats DnD and menu
    - Slower press-and-drag on icons trigger DnD, beats scrolling and menu
    - Long press triggers menu, beats scrolling, is beaten by DnD
    
    This allows quick swipes to handle navigation, while still allowing the
    fine grained operations. DnD, when triggered, dismisses the menu, if
    shown.
    
    This all could probably be nicer with a more stateful gesture framework,
    we're not there yet though.
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3849

Fixes #4238 (closed)

Edited by Florian Müllner

Merge request reports