Adding in stop_propagation and stop_immediate_propagation methods to events
This commit is contained in:
parent
29083bf288
commit
4e2fdd31fe
|
@ -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<EventTarget> { self.event.target() }
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue