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
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> {