on xenial help sign in
don't invoke the haptics when clicking on empty space or with RMB
commit5b71c3d20bbfc61924c71fb25c64cfb5f573e54e authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 6 Jan 2016, 13:13 (11 years ago) parentabdd5df
1 file changed+3−2
qml/Launcher/LauncherPanel.qml+3−2
qml/Launcher/LauncherPanel.qml+3−2
@@ -393,7 +393,6 @@ Rectangle {
393393 }
394394
395395 onClicked: {
396− Haptics.play();
397396 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
398397 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
399398
@@ -408,9 +407,11 @@ Rectangle {
408407 quickList.model = launcherListView.model.get(index).quickList;
409408 quickList.appId = launcherListView.model.get(index).appId;
410409 quickList.state = "open";
411− return
410+ return;
412411 }
413412
413+ Haptics.play();
414+
414415 // First/last item do the scrolling at more than 12 degrees
415416 if (index == 0 || index == launcherListView.count - 1) {
416417 if (clickedItem.angle > 12) {