On Web, fix context menu not being disabled (#3282)
This commit is contained in:
parent
7761b2b16c
commit
4f669ebbd2
3 changed files with 19 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue