mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make hypertext and textarea have proper scroll event propagation. (#10860)
This commit is contained in:
parent
6417f4d314
commit
6a55c03dab
3 changed files with 4 additions and 1 deletions
|
@ -1088,7 +1088,7 @@ bool GUIHyperText::OnEvent(const SEvent &event)
|
|||
if (event.MouseInput.Event == EMIE_MOUSE_MOVED)
|
||||
checkHover(event.MouseInput.X, event.MouseInput.Y);
|
||||
|
||||
if (event.MouseInput.Event == EMIE_MOUSE_WHEEL) {
|
||||
if (event.MouseInput.Event == EMIE_MOUSE_WHEEL && m_vscrollbar->isVisible()) {
|
||||
m_vscrollbar->setPos(m_vscrollbar->getPos() -
|
||||
event.MouseInput.Wheel * m_vscrollbar->getSmallStep());
|
||||
m_text_scrollpos.Y = -m_vscrollbar->getPos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue