Constant egui::input_state::MAX_CLICK_DURATION

source ·
const MAX_CLICK_DURATION: f64 = 0.8;
Expand description

If the pointer is down for longer than this it will no longer register as a click.

If a touch is held for this many seconds while still, then it will register as a “long-touch” which is equivalent to a secondary click.

This is to support “press and hold for context menu” on touch screens.