- added mouse control for image scroller menu.

This commit is contained in:
Christoph Oelckers 2020-01-03 20:53:38 +01:00
parent 4155d49e59
commit 5cc165587e

View file

@ -142,6 +142,11 @@ bool DImageScrollerMenu::MenuEvent(int mkey, bool fromcontroller)
bool DImageScrollerMenu::MouseEvent(int type, int x, int y)
{
// Todo: Implement some form of drag event to switch between pages.
if (type == MOUSE_Release)
{
return MenuEvent(MKEY_Enter, false);
}
return DMenu::MouseEvent(type, x, y);
}