on xenial help sign in
make highlight follow mouse hover
commited07c5a00c1ad564e5b114c13beea27e9ee808a3 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 3 Jun 2015, 15:57 (11 years ago) parent28f8655
1 file changed+7−3
qml/Stages/DesktopStage.qml+7−3
qml/Stages/DesktopStage.qml+7−3
@@ -281,9 +281,13 @@ Rectangle {
281281 // return to false if the MouseArea is disabled while
282282 // containing the mouse. Let's manage the property our own.
283283 property bool upperThirdContainsMouse: false
284− onContainsMouseChanged: evaluateUpperThirdContainsMouse()
285− onMouseYChanged: evaluateUpperThirdContainsMouse()
286− function evaluateUpperThirdContainsMouse() {
284+ onContainsMouseChanged: evaluateContainsMouse()
285+ onMouseYChanged: evaluateContainsMouse()
286+ function evaluateContainsMouse() {
287+ if (containsMouse) {
288+ appRepeater.highlightedIndex = index
289+ }
290+
287291 if (containsMouse && mouseY < height / 3) {
288292 spreadSelectArea.upperThirdContainsMouse = true
289293 } else {