Skip to main content

tap_selection_granularity

Function tap_selection_granularity 

Source
pub fn tap_selection_granularity(tap_count: u8) -> SelectionGranularity
Expand description

Maps a 1-based tap count to the granularity it selects.

A single tap places the caret; two taps select the word, three the line, four the paragraph, and every further tap cycles back through word → line → paragraph so a resting finger keeps toggling between the three range granularities (matching desktop editors and iOS).