Remove unnecessary preventDefault() calls
This commit is contained in:
parent
0786d534f4
commit
d3aeff8838
3 changed files with 1 additions and 16 deletions
|
|
@ -203,13 +203,7 @@ impl PointerHandler {
|
|||
let pointer_type = event.pointer_type();
|
||||
|
||||
match pointer_type.as_str() {
|
||||
"touch" => {
|
||||
if prevent_default {
|
||||
// prevent scroll on mobile web
|
||||
event.prevent_default();
|
||||
}
|
||||
}
|
||||
"mouse" => (),
|
||||
"touch" | "mouse" => (),
|
||||
_ => return,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue