fix: Synchronized scrolling not working correctly

This commit is contained in:
WerWolv
2023-12-24 00:06:16 +01:00
parent 020efefb25
commit 65e2f1b5af
5 changed files with 68 additions and 16 deletions

View File

@@ -325,7 +325,7 @@ namespace hex::ui {
bb,
ImGui::GetWindowScrollbarID(window, axis),
axis,
&m_scrollPosition,
&m_scrollPosition.get(),
(std::ceil(innerRect.Max.y - innerRect.Min.y) / CharacterSize.y) - (m_visibleRowCount - 1),
std::nextafterf(numRows, std::numeric_limits<float>::max()),
roundingCorners);