Keep color of object during drag over surface.

This commit is contained in:
Filip Sykala - NTB T15p 2023-03-20 15:33:00 +01:00
parent 201e9d493f
commit d24472675c

View file

@ -80,6 +80,7 @@ bool on_mouse_surface_drag(const wxMouseEvent &mouse_event,
// allow moving with object again
canvas.enable_moving(true);
canvas.enable_picking(true);
surface_drag.reset();
// only left up is correct
@ -167,6 +168,7 @@ bool on_mouse_surface_drag(const wxMouseEvent &mouse_event,
// disable moving with object by mouse
canvas.enable_moving(false);
canvas.enable_picking(false);
return true;
}