GUI: Notify when popup widget changes by mousewheel
This is consistent with the notification when the widget changes by clicking. As far as I can tell, that notification was added shortly before mouse wheel handling was added. It missing from the mouse wheel handler was presumably just an oversight.
This commit is contained in:
parent
34098bc688
commit
ba182faeaf
1 changed files with 1 additions and 0 deletions
|
@ -406,6 +406,7 @@ void PopUpWidget::handleMouseWheel(int x, int y, int direction) {
|
|||
if ((newSelection >= 0) && (newSelection < (int)_entries.size()) &&
|
||||
(newSelection != _selectedItem)) {
|
||||
_selectedItem = newSelection;
|
||||
sendCommand(kPopUpItemSelectedCmd, _entries[_selectedItem].tag);
|
||||
draw();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue