diff --git a/src/events.rs b/src/events.rs index aefdf24..11440ab 100644 --- a/src/events.rs +++ b/src/events.rs @@ -57,6 +57,10 @@ macro_rules! make_event { impl $name { #[inline] pub fn prevent_default(&self) { self.event.prevent_default(); } + #[inline] pub fn stop_propagation(&self) { self.event.stop_propagation(); } + + #[inline] pub fn stop_immediate_propagation(&self) { self.event.stop_immediate_propagation(); } + #[inline] pub fn target(&self) -> Option { self.event.target() } #[inline]