Selaa lähdekoodia

Scroll bar hover state updates properly

Marko Pintera 12 vuotta sitten
vanhempi
sitoutus
0811b5735d
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 0
      BansheeEngine/Source/BsGUIScrollBarHandle.cpp
  2. 0 2
      TODO.txt

+ 1 - 0
BansheeEngine/Source/BsGUIScrollBarHandle.cpp

@@ -241,6 +241,7 @@ namespace BansheeEngine
 		if(ev.getType() == GUIMouseEventType::MouseOut && !mHandleDragged)
 		if(ev.getType() == GUIMouseEventType::MouseOut && !mHandleDragged)
 		{
 		{
 			mCurTexture = mStyle->normal.texture;
 			mCurTexture = mStyle->normal.texture;
+			mMouseOverHandle = false;
 			markContentAsDirty();
 			markContentAsDirty();
 
 
 			return true;
 			return true;

+ 0 - 2
TODO.txt

@@ -33,8 +33,6 @@ IMMEDIATE:
 - Test if horizontal + vert scroll works together
 - Test if horizontal + vert scroll works together
 - InputBox text clip rect is probably wrong as it doesn't account parent element clip rect
 - InputBox text clip rect is probably wrong as it doesn't account parent element clip rect
  (possibly selection and caret clip rects too)
  (possibly selection and caret clip rects too)
-- Dragging a scrollbar and then releasing it offsets it a tiny bit
-- Scroll bar doesn't update its hover state properly (or its perpetually in hover state).
 - Hover colors of the scroll bar are wrong
 - Hover colors of the scroll bar are wrong
 
 
 TextBox needed elements:
 TextBox needed elements: