Quick fix for weird "triangle selection" in touch screen for dynamic ribbon widget

This commit is contained in:
Benau 2020-03-11 15:45:28 +08:00
parent 80dd4732f3
commit dccbe675fc

View File

@ -720,7 +720,14 @@ EventPropagation DynamicRibbonWidget::mouseHovered(Widget* child, const int play
//Log::info("DynamicRibbonWidget", "mouseHovered %d", playerID);
updateLabel();
propagateSelection();
bool multitouch_enabled = (UserConfigParams::m_multitouch_active == 1 &&
irr_driver->getDevice()->supportsTouchDevice()) ||
UserConfigParams::m_multitouch_active > 1;
// For now disable it to fix the weird "triangle selection" for touch
// screen
if (!multitouch_enabled)
propagateSelection();
if (getSelectedRibbon(playerID) != NULL)
{