Skip to main content

OVERLAY_MARGIN

Constant OVERLAY_MARGIN 

Source
pub(crate) const OVERLAY_MARGIN: f32 = 8.0;
Expand description

The distance every overlay keeps from the edge of the screen.

Each corner overlay is anchored to its edge with this offset, so none of them is drawn flush against the boundary — a readout or a button touching the very edge of a phone’s display reads as clipped, and the safe-area insets the page already applies to the canvas are not visible to egui.