pub const DEFAULT_DOUBLE_CLICK_WINDOW: u16 = 30;Expand description
Default Interaction::with_double_click_window.
A second Response::clicked within this many begin_frame
calls of the first counts as Response::double_clicked.
Measured in frames rather than a Duration because this module has no wall clock (see the
field comment on double_click_window). 30 frames is about half a second at a 60 fps redraw
rate, matching the double-click timing desktop environments use; because it is counted in
frames, the effective window scales inversely with frame rate (a 30 fps app gets ~1 s, a
120 fps app ~250 ms), so an app that runs far from 60 fps should override it via
Interaction::with_double_click_window. Too small drops deliberate but slow double-clicks;
too large pairs clicks a user meant as separate. Chosen to land near half a second at 60 fps,
not otherwise measured.