Fix for dragging widgets with non-primary mouse button

Broken in e31312cf7a
This commit is contained in:
Emil Ernerfeldt 2021-08-22 21:16:54 +02:00
parent 605762364a
commit f8a3042258

View file

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