Commit 04ada03e authored by mercury233's avatar mercury233

fix

parent 59e6d1da
...@@ -329,30 +329,12 @@ index 3f633da..c0712df 100644 ...@@ -329,30 +329,12 @@ index 3f633da..c0712df 100644
diff --git a/irrlicht/src/CGUIListBox.old.cpp b/irrlicht/src/CGUIListBox.cpp diff --git a/irrlicht/src/CGUIListBox.old.cpp b/irrlicht/src/CGUIListBox.cpp
--- a/irrlicht/src/CGUIListBox.old.cpp 2017-09-05 04:20:28.619271300 +0800 --- a/irrlicht/src/CGUIListBox.old.cpp 2017-09-05 04:20:28.619271300 +0800
+++ b/irrlicht/src/CGUIListBox.cpp 2017-09-05 04:11:37.367885500 +0800 +++ b/irrlicht/src/CGUIListBox.cpp 2017-09-05 04:11:37.367885500 +0800
@@ -411,6 +411,10 @@ @@ -425,7 +425,7 @@
case EMIE_LMOUSE_PRESSED_DOWN:
{
Selecting = true;
+
+ if(isPointInside(p))
+ selectNew(event.MouseInput.Y);
+
return true;
} }
@@ -455,9 +459,12 @@ case EMIE_MOUSE_MOVED:
u32 now = os::Timer::getTime(); - if (Selecting || MoveOverSelect)
s32 oldSelected = Selected; + if (MoveOverSelect)
{
- Selected = getItemAt(AbsoluteRect.UpperLeftCorner.X, ypos); if (isPointInside(p))
- if (Selected<0 && !Items.empty()) {
- Selected = 0;
+ if (!onlyHover)
+ {
+ Selected = getItemAt(AbsoluteRect.UpperLeftCorner.X, ypos);
+ if(Selected<0 && !Items.empty())
+ Selected = 0;
+ }
recalculateScrollPos();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment