mirror of https://github.com/WerWolv/ImHex
fix: Minimap not allowing scrolling as far as the scroll bar
This commit is contained in:
parent
827b5b01dd
commit
ab95cdf3e5
|
|
@ -315,8 +315,8 @@ namespace hex::ui {
|
|||
ImGui::GetWindowScrollbarID(window, axis),
|
||||
axis,
|
||||
&m_scrollPosition.get(),
|
||||
(std::ceil(innerRect.Max.y - innerRect.Min.y) / characterSize.y),
|
||||
std::nextafterf((numRows - m_visibleRowCount) + ImGui::GetWindowSize().y / characterSize.y, std::numeric_limits<float>::max()),
|
||||
static_cast<ImS64>(std::ceil(innerRect.Max.y - innerRect.Min.y) / characterSize.y),
|
||||
static_cast<ImS64>(std::nextafterf(static_cast<float>(numRows) + (ImGui::GetWindowSize().y / characterSize.y), std::numeric_limits<float>::max())),
|
||||
roundingCorners);
|
||||
|
||||
if (ImGui::IsItemHovered() && ImGui::IsMouseClicked(ImGuiMouseButton_Right)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue