On Web, fix context menu not being disabled (#3282)

This commit is contained in:
daxpedda 2023-12-22 00:11:36 +01:00 committed by GitHub
parent 7761b2b16c
commit 4f669ebbd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View file

@ -647,6 +647,8 @@ impl<T> EventLoopWindowTarget<T> {
let runner = self.runner.clone();
canvas.on_animation_frame(move || runner.request_redraw(RootWindowId(id)));
canvas.on_context_menu(prevent_default);
}
pub fn available_monitors(&self) -> VecDequeIter<MonitorHandle> {