• Renzo Olivares's avatar
    Implement SelectionArea single click/tap gestures (#132682) · 21ad7122
    Renzo Olivares authored
    This change collapses the selection at the clicked/tapped location on single click down for desktop platforms, and on single click/tap up for mobile platforms to match native.
    
    This is a change from how `SelectionArea` previously worked. Before this change a single click down would clear the selection. From observing a native browser it looks like when tapping on static text the selection is not cleared but collapsed. A user can still attain the selection from static text using the `window.getSelection` API.
    
    https://jsfiddle.net/juepasn3/11/ You can try this demo out here to observe this behavior yourself. When clicking on static text the selection will change.
    
    This change also allows `Paragraph.selections` to return selections that are collapsed. This for testing purposes to confirm where the selection has been collapsed.
    
    Partially fixes: #129583
    21ad7122
Name
Last commit
Last update
..
action_buttons Loading commit data...
action_chip Loading commit data...
animated_icon Loading commit data...
appbar Loading commit data...
autocomplete Loading commit data...
bottom_navigation_bar Loading commit data...
bottom_sheet Loading commit data...
card Loading commit data...
checkbox_list_tile Loading commit data...
choice_chip Loading commit data...
context_menu Loading commit data...
data_table Loading commit data...
date_picker Loading commit data...
dialog Loading commit data...
divider Loading commit data...
drawer Loading commit data...
dropdown Loading commit data...
dropdown_menu Loading commit data...
expansion_panel Loading commit data...
expansion_tile Loading commit data...
filter_chip Loading commit data...
floating_action_button Loading commit data...
ink Loading commit data...
input_chip Loading commit data...
input_decorator Loading commit data...
list_tile Loading commit data...
menu_anchor Loading commit data...
navigation_bar Loading commit data...
navigation_drawer Loading commit data...
navigation_rail Loading commit data...
page_transitions_theme Loading commit data...
paginated_data_table Loading commit data...
popup_menu Loading commit data...
progress_indicator Loading commit data...
radio_list_tile Loading commit data...
refresh_indicator Loading commit data...
reorderable_list Loading commit data...
scaffold Loading commit data...
scrollbar Loading commit data...
search_anchor Loading commit data...
slider Loading commit data...
switch Loading commit data...
switch_list_tile Loading commit data...
tabs Loading commit data...
text_button Loading commit data...
text_field Loading commit data...
theme_data Loading commit data...
time_picker Loading commit data...
toggle_buttons Loading commit data...
tooltip Loading commit data...