Fix sliders accepting clicks from anywhere
Broken by 69e0a8b0aa
where I added an extra MouseDownInside check to the OnMouseDown (used to be OnMouseClick) of every component except that of sliders.
This commit is contained in:
parent
a7e71db9a0
commit
ab28f93753
@ -50,8 +50,11 @@ void Slider::OnMouseMoved(int x, int y)
|
|||||||
|
|
||||||
void Slider::OnMouseDown(int x, int y, unsigned button)
|
void Slider::OnMouseDown(int x, int y, unsigned button)
|
||||||
{
|
{
|
||||||
isMouseDown = true;
|
if (MouseDownInside)
|
||||||
updatePosition(x - Position.X);
|
{
|
||||||
|
isMouseDown = true;
|
||||||
|
updatePosition(x - Position.X);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Slider::OnMouseUp(int x, int y, unsigned button)
|
void Slider::OnMouseUp(int x, int y, unsigned button)
|
||||||
|
Reference in New Issue
Block a user