Skip to content

Commit

Permalink
MouseEnter signal didn't fire in ScrollableWidget when the mouse was …
Browse files Browse the repository at this point in the history
…on the borders
  • Loading branch information
texus committed Jul 17, 2024
1 parent 5abd2a7 commit 2861989
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Widgets/ScrollablePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ namespace tgui
Panel::mouseMoved({pos.x + static_cast<float>(m_horizontalScrollbar->getValue()),
pos.y + static_cast<float>(m_verticalScrollbar->getValue())});
}
else // Mouse on top of the borders
{
if (!m_mouseHover)
mouseEnteredWidget();
}

m_verticalScrollbar->mouseNoLongerOnWidget();
m_horizontalScrollbar->mouseNoLongerOnWidget();
Expand Down

0 comments on commit 2861989

Please sign in to comment.