Skip to content
Snippets Groups Projects
Commit f3abaec8 authored by Kahrl's avatar Kahrl
Browse files

Ignore some mouse events sent from scrollbar to GUITable

Fixes #1567, #1806.
parent d75f0b03
No related branches found
No related tags found
No related merge requests found
......@@ -862,6 +862,14 @@ bool GUITable::OnEvent(const SEvent &event)
// Update tooltip
setToolTipText(cell ? m_strings[cell->tooltip_index].c_str() : L"");
// Fix for #1567/#1806:
// IGUIScrollBar passes double click events to its parent,
// which we don't want. Detect this case and discard the event
if (event.MouseInput.Event != EMIE_MOUSE_MOVED &&
m_scrollbar->isVisible() &&
m_scrollbar->isPointInside(p))
return true;
if (event.MouseInput.isLeftPressed() &&
(isPointInside(p) ||
event.MouseInput.Event == EMIE_MOUSE_MOVED)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment