removed useless events triggered every time mouse moved over a ribbon
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3444 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7a0a862994
commit
1a481fb227
@ -477,6 +477,7 @@ bool RibbonWidget::mouseHovered(Widget* child)
|
|||||||
{
|
{
|
||||||
if(m_children.get(i) == child)
|
if(m_children.get(i) == child)
|
||||||
{
|
{
|
||||||
|
if(m_selection == i) return false; // was already selected, don't send another event
|
||||||
m_selection = i;
|
m_selection = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user