Skip to content

Commit

Permalink
remove expect from fallible code, would crash if handling this outsid…
Browse files Browse the repository at this point in the history
…e of winit
  • Loading branch information
TotalKrill committed Nov 19, 2021
1 parent 265a8f1 commit 40235bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platform_impl/web/web_sys/canvas/pointer_handler.rs
Expand Up @@ -79,9 +79,7 @@ impl PointerHandler {
event::mouse_button(&event),
event::mouse_modifiers(&event),
);
canvas
.set_pointer_capture(event.pointer_id())
.expect("Failed to set pointer capture");
let _e = canvas.set_pointer_capture(event.pointer_id());
},
));
}
Expand Down

0 comments on commit 40235bb

Please sign in to comment.