diff --git a/src/effects/desktopgrid/desktopgrid.cpp b/src/effects/desktopgrid/desktopgrid.cpp index 0828b89e37..be6534f4ad 100644 --- a/src/effects/desktopgrid/desktopgrid.cpp +++ b/src/effects/desktopgrid/desktopgrid.cpp @@ -93,6 +93,13 @@ DesktopGridEffect::DesktopGridEffect() timeline.setCurrentTime(timeline.duration() * cb); effects->addRepaintFull(); }); + effects->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Down, a, [this](qreal cb) { + if (!activated) return; + + timeline.setDirection(QTimeLine::Backward); + timeline.setCurrentTime(timeline.duration() - (timeline.duration() * cb)); + effects->addRepaintFull(); + }); connect(&timeline, &QTimeLine::frameChanged, this, []() { effects->addRepaintFull(); });