1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Yet another hex editor scrolling issue

This commit is contained in:
WerWolv 2022-12-24 15:29:42 +01:00
parent e71841b871
commit 4e22d636d3

View File

@ -617,7 +617,7 @@ namespace hex::plugin::builtin::ui {
// Scroll to the cursor if it's either at the top or bottom edge of the screen
if (this->m_shouldScrollToSelection && isSelectionValid()) {
// Make sure simply clicking on a byte at the edge of the screen won't cause scrolling
if ((ImGui::IsMouseDown(ImGuiMouseButton_Left) && *this->m_selectionStart != *this->m_selectionEnd)) {
if ((ImGui::IsMouseDragging(ImGuiMouseButton_Left) && *this->m_selectionStart != *this->m_selectionEnd)) {
auto fractionPerLine = 1.0 / (this->m_visibleRowCount + 1);
if (y == (u64(clipper.DisplayStart) + 3)) {