mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Remove unnecessary preventDefault() calls
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user