fix: Hex editor selection scrolling not working correctly

This commit is contained in:
WerWolv 2022-05-28 13:38:36 +02:00
parent e2bfd26bb3
commit 28a8adb26d
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ namespace hex::plugin::builtin {
}
// If the cursor is off-screen, directly jump to the byte
{
if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) {
const auto newSelection = this->getSelection();
if (newSelection.getStartAddress() < u64(clipper.DisplayStart * this->m_bytesPerRow))
this->jumpToSelection();