mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Fix downward scroll when deleting a character in a multi-line edit box when all of the lines fit inside of the edit box
This commit is contained in:
@@ -975,6 +975,9 @@ namespace PortabilityLayer
|
|||||||
int32_t h = m_rect.Height();
|
int32_t h = m_rect.Height();
|
||||||
if (lowerY < h)
|
if (lowerY < h)
|
||||||
m_scrollOffset.m_y -= lowerY - h;
|
m_scrollOffset.m_y -= lowerY - h;
|
||||||
|
|
||||||
|
if (m_scrollOffset.m_y > 0)
|
||||||
|
m_scrollOffset.m_y = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user