Skip to content

Commit

Permalink
fnHandleMouseWheel: SetItemUsingMouseWheel deprecated / use SetItemKe…
Browse files Browse the repository at this point in the history
…yOwner
  • Loading branch information
pthom committed Oct 27, 2024
1 parent 3d82cf3 commit abdf951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/immvision/internal/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ This is a required setup step. (Breaking change - October 2024)
{
if (!params->ZoomWithMouseWheel)
return;
ImGui::SetItemUsingMouseWheel();
ImGui::SetItemKeyOwner(ImGuiKey_MouseWheelY); // i.e. old ImGui::SetItemUsingMouseWheel();

if ((fabs(ImGui::GetIO().MouseWheel) > 0.f) && (ImGui::IsItemHovered()))
{
Expand Down
2 changes: 1 addition & 1 deletion src_all_in_one/immvision/immvision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9944,7 +9944,7 @@ This is a required setup step. (Breaking change - October 2024)
{
if (!params->ZoomWithMouseWheel)
return;
ImGui::SetItemUsingMouseWheel();
ImGui::SetItemKeyOwner(ImGuiKey_MouseWheelY); // i.e. old ImGui::SetItemUsingMouseWheel();

if ((fabs(ImGui::GetIO().MouseWheel) > 0.f) && (ImGui::IsItemHovered()))
{
Expand Down

0 comments on commit abdf951

Please sign in to comment.