mirror of
https://invent.kde.org/plasma/plasma-desktop.git
synced 2026-11-03 14:49:44 -09:00
applets/kicker: keep currentindex when scrolling list
ItemListDelegate may show tooltips. When you scroll the list, this may interfere with the list view's hovered check and unset the currentitem. Instead, also check whether the delegate containsMouse, which is still true when scrolling. This makes both wheel and touchpad scrolling work properly, and selects the item the pointer lands on.
This commit is contained in:
parent
ebfd56d594
commit
ed750e4cef
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ PlasmaComponents3.ScrollView {
|
|||
Qt.callLater( () =>{
|
||||
if (ActionMenu.opened) {
|
||||
return
|
||||
} else if (hovered || (listView.currentItem as ItemListDelegate).dragActive) {
|
||||
} else if (hovered || (listView.currentItem as ItemListDelegate).dragActive || (listView.currentItem as ItemListDelegate).containsMouse) {
|
||||
resetIndexTimer.stop();
|
||||
} else {
|
||||
resetIndexTimer.start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue