Skip to main content

web_prevent_default

Function web_prevent_default 

Source
pub fn web_prevent_default(_event: &Event) -> bool
Expand description

For a web build’s eframe::WebOptions::should_prevent_default: the browser never gets an event egui-pop handles, the wheel above all (Ctrl and the wheel would zoom the page, and a trackpad’s pinch arrives the same way), as eframe’s default does for every event.