Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created December 6, 2014 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/eb3e016716c5b48fa380 to your computer and use it in GitHub Desktop.
Save kahrl/eb3e016716c5b48fa380 to your computer and use it in GitHub Desktop.
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index 845c901..153d001 100644
--- a/src/guiTable.cpp
+++ b/src/guiTable.cpp
@@ -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)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment