on xenial help sign in
Make clicking on launcher buttons have haptic feedback

since dndArea uses onPositionChanged could not convert it to AbstractButton and had to call Haptics.play manually

commitfc2a6f51c3bbabb8d6b04b1827f4204064df8422 authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 21 Aug 2015, 16:03 (11 years ago) parenta8f7a60
1 file changed+2−1
qml/Launcher/LauncherPanel.qml+2−1
qml/Launcher/LauncherPanel.qml+2−1
@@ -73,7 +73,7 @@ Rectangle {
7373 source: "graphics/home.png"
7474 rotation: root.rotation
7575 }
76− MouseArea {
76+ AbstractButton {
7777 id: dashItem
7878 anchors.fill: parent
7979 onClicked: root.showDashHome()
@@ -381,6 +381,7 @@ Rectangle {
381381 }
382382
383383 onClicked: {
384+ Haptics.play();
384385 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
385386 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
386387