Browse Source

Fix for dragging widgets with non-primary mouse button

Broken in e31312cf7a
pull/641/head
Emil Ernerfeldt 3 years ago
parent
commit
f8a3042258
  1. 1
      egui/src/context.rs

1
egui/src/context.rs

@ -250,7 +250,6 @@ impl CtxRef {
// This is needed because we do window interaction first (to prevent frame delay),
// and then do content layout.
if sense.drag
&& self.input().pointer.primary_down()
&& (memory.interaction.drag_id.is_none()
|| memory.interaction.drag_is_window)
{

Loading…
Cancel
Save