Skip to content

appDisplay: Use icon grid size as distance passed to SwipeTracker

The swipeTracker wants the distance between two pages passed to it in confirmSwipe(). In case of the app grid, the correct distance is not the size of the scrollView (which has the width of the whole screen), but instead the allocation size of the iconGrid (which is the actual size of a page in the grid).

So pass the allocation size of the iconGrid to the swipeTracker, this makes sure the pages move perfectly in sync with the pointer when dragging using the mouse or touchscreen.

Merge request reports