bevy_pancam icon indicating copy to clipboard operation
bevy_pancam copied to clipboard

Should be disabled on egui windows

Open pjankiewicz opened this issue 3 years ago • 1 comments

I noticed that the drag is captured even when it is done on egui windows

Adding

    if egui_ctx.ctx_mut().wants_pointer_input() || egui_ctx.ctx_mut().wants_keyboard_input() {
        return;
    }

in systems should fix this.

It can be added behind a feature flag. What do you think about this? I can contribute this change.

pjankiewicz avatar Mar 29 '22 23:03 pjankiewicz

Yes, that sounds like a good idea!

Sorry for the delayed response.

johanhelsing avatar Apr 18 '22 11:04 johanhelsing

seconded on this, running into this issue too.

laundmo avatar Aug 25 '22 18:08 laundmo

Fixed in 899a8381353b725ebf1556072f2403e20044e905

johanhelsing avatar Aug 26 '22 13:08 johanhelsing