Skip to content

Commit

Permalink
Prevent breaking of drag on attached elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mankinskin committed Jul 8, 2021
1 parent 4731aa6 commit 38e9a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egui/src/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct ContextMenuSystem {
impl ContextMenuSystem {
/// sense if a context menu needs to be (re-)created or destroyed
fn sense_click(&mut self, response: &Response) -> MenuResponse {
let response = response.interact(Sense::click_and_drag());
let response = response.interact(Sense::click());
let pointer = &response.ctx.input().pointer;
if pointer.any_click() {
if let Some(pos) = pointer.interact_pos() {
Expand Down

0 comments on commit 38e9a53

Please sign in to comment.