impr: Use ImGui's built-in drag n drop support for bookmarks

This commit is contained in:
WerWolv
2024-01-08 10:56:53 +01:00
parent 9530100455
commit 3a068b9719
3 changed files with 41 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ namespace hex::plugin::builtin {
drawBitsSlider(&bitValue);
// Configure drag and drop source and target
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) {
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip)) {
// Set the current slider index as the payload
ImGui::SetDragDropPayload("BIT_VALUE", &index, sizeof(u32));