made Undelegated inner field public so users can just wrap any event with it to force it undelegated

This commit is contained in:
Jose Quesada 2022-12-04 21:23:16 -06:00
parent cffdc56062
commit 6737413103

View file

@ -25,7 +25,7 @@ pub trait EventDescriptor {
/// Overrides the [`EventDescriptor::bubbles`] method to always return
/// `false`, which forces the event to not be globally delegated.
pub struct Undelegated<Ev: EventDescriptor>(Ev);
pub struct Undelegated<Ev: EventDescriptor>(pub Ev);
impl<Ev: EventDescriptor> EventDescriptor for Undelegated<Ev> {
type EventType = Ev::EventType;