mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
GUI: Only visible items are selectable
This commit is contained in:
parent
ad73d0088b
commit
dda32aadcc
@ -146,7 +146,7 @@ void GridItemWidget::handleMouseMoved(int x, int y, int button) {
|
||||
}
|
||||
|
||||
void GridItemWidget::handleMouseDown(int x, int y, int button, int clickCount) {
|
||||
if (isHighlighted) {
|
||||
if (isHighlighted && isVisible()) {
|
||||
// Work in progress
|
||||
_grid->openTray(getAbsX() - _grid->_gridXSpacing / 3, getAbsY() + _h, _w + 2 * (_grid->_gridXSpacing / 3), kLineHeight * 3, _activeEntry->entryID);
|
||||
_grid->_tray->runModal();
|
||||
|
Loading…
x
Reference in New Issue
Block a user