Skip to content

Commit

Permalink
fixing right click breaks all tests -- I'll return to this later
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Sep 22, 2024
1 parent d73e58c commit ab7701e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/graphics_interaction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ function MouseButton(pos::XY{U}, button::Integer, clicktype, modifiers, n_press=
MouseButton{U}(pos, UInt32(button), clicktype, modifiers, n_press)
end

_get_button(modifiers, e::GtkGestureSingle) = Gtk4.current_button(e)

function _get_button(modifiers, e::GtkEventController)
if modifiers & Gtk4.ModifierType_BUTTON1_MASK == Gtk4.ModifierType_BUTTON1_MASK
return 1
Expand All @@ -149,7 +147,7 @@ function _get_button(modifiers, e::GtkEventController)
elseif modifiers & Gtk4.ModifierType_BUTTON3_MASK == Gtk4.ModifierType_BUTTON3_MASK
return 3
else
return 0
return isa(e, GtkGestureSingle) ? Gtk4.current_button(e) : 0
end
end

Expand Down

0 comments on commit ab7701e

Please sign in to comment.