Remove unnecessary preventDefault() calls

This commit is contained in:
dAxpeDDa 2023-06-04 12:46:03 +02:00 committed by daxpedda
parent 0786d534f4
commit d3aeff8838
3 changed files with 1 additions and 16 deletions

View file

@ -138,14 +138,6 @@ impl Canvas {
}));
}
pub fn on_touch_end(&mut self, prevent_default: bool) {
self.on_touch_end = Some(self.common.add_event("touchend", move |event: Event| {
if prevent_default {
event.prevent_default();
}
}));
}
pub fn on_blur<F>(&mut self, mut handler: F)
where
F: 'static + FnMut(),