diff options
Diffstat (limited to 'modules/dashboard')
| -rw-r--r-- | modules/dashboard/Tabs.qml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/dashboard/Tabs.qml b/modules/dashboard/Tabs.qml index f45bdea..e6b59e7 100644 --- a/modules/dashboard/Tabs.qml +++ b/modules/dashboard/Tabs.qml @@ -107,15 +107,12 @@ Item { cursorShape: Qt.PointingHandCursor - onPressed: ({ - x, - y - }) => { + onPressed: event => { tab.TabBar.tabBar.setCurrentIndex(tab.TabBar.index); const stateY = stateWrapper.y; - rippleAnim.x = x; - rippleAnim.y = y - stateY; + rippleAnim.x = event.x; + rippleAnim.y = event.y - stateY; const dist = (ox, oy) => ox * ox + oy * oy; const stateEndY = stateY + stateWrapper.height; |