on xenial help sign in
don't invoke the haptics when clicking on empty space or with RMB
5b71c3dLukáš Tinkl
qml/Launcher/LauncherPanel.qml+3−2
@@ -393,7 +393,6 @@ Rectangle {
393 }
393 }
394
394
395 onClicked: {
395 onClicked: {
396− Haptics.play();
397 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
396 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
398 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
397 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
399
398
@@ -408,9 +407,11 @@ Rectangle {
408 quickList.model = launcherListView.model.get(index).quickList;
407 quickList.model = launcherListView.model.get(index).quickList;
409 quickList.appId = launcherListView.model.get(index).appId;
408 quickList.appId = launcherListView.model.get(index).appId;
410 quickList.state = "open";
409 quickList.state = "open";
411− return
410+ return;
412 }
411 }
413
412
413+ Haptics.play();
414+
414 // First/last item do the scrolling at more than 12 degrees
415 // First/last item do the scrolling at more than 12 degrees
415 if (index == 0 || index == launcherListView.count - 1) {
416 if (index == 0 || index == launcherListView.count - 1) {
416 if (clickedItem.angle > 12) {
417 if (clickedItem.angle > 12) {