mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
only treat double clicks as double clicks, but not triple/quadruple/etc. clicks)
svn-id: r6781
This commit is contained in:
parent
6e18bdfdb3
commit
f2cc6a3d7d
@ -118,7 +118,7 @@ void ListWidget::handleMouseDown(int x, int y, int button, int clickCount) {
|
||||
void ListWidget::handleMouseUp(int x, int y, int button, int clickCount) {
|
||||
// If this was a double click and the mouse is still over the selected item,
|
||||
// send the double click command
|
||||
if (clickCount > 1 && (_selectedItem == (y - 1) / kLineHeight + _currentPos)) {
|
||||
if (clickCount == 2 && (_selectedItem == (y - 1) / kLineHeight + _currentPos)) {
|
||||
sendCommand(kListItemDoubleClickedCmd, _selectedItem);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user