mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 09:44:58 +01:00
On Web, fix context menu not being disabled (#3282)
This commit is contained in:
1 parent
7761b2b16c
commit
4f669ebbd2
3 files changed
+19
-1
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user