Adding in stop_propagation and stop_immediate_propagation methods to events

This commit is contained in:
Pauan 2021-09-18 21:36:28 +02:00
parent 29083bf288
commit 4e2fdd31fe
1 changed files with 4 additions and 0 deletions

View File

@ -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]