fix: Goto setting hex editor scroll position to imprecise value for large addresses

#2599

(cherry picked from commit 731cf10207)
This commit is contained in:
WerWolv
2026-01-02 15:36:23 +01:00
parent 5e09f4ec23
commit dfd8391382

View File

@@ -1074,7 +1074,7 @@ namespace hex::ui {
// Check if the targetRowNumber is outside the current visible range
if (ImS64(targetRowNumber) < currentTopRow) {
// If target is above the current view, scroll just enough to bring it into view at the top
m_scrollPosition = targetRowNumber + m_visibleRowCount * m_jumpPivot - 3;
m_scrollPosition = targetRowNumber + ImS64(m_visibleRowCount * m_jumpPivot - 3);
} else if (ImS64(targetRowNumber) > currentBottomRow) {
// If target is below the current view, scroll just enough to bring it into view at the bottom
m_scrollPosition = targetRowNumber - 3;