Ensure that the selection start is always before the selection end, regardless of the direction of a mouse selection, to make h.Cursor.Deselect() handle its start argument correctly.
This makes the cursor behavior after mouse selections consistent with the cursor behavior after keyboard selections.
Together with @dustdfg 's fix #3091, this makes both keyboard and mouse selections work as expected. See also the discussion in #3091.
Ensure that the selection start is always before the selection end, regardless of the direction of a mouse selection, to make
h.Cursor.Deselect()
handle itsstart
argument correctly.This makes the cursor behavior after mouse selections consistent with the cursor behavior after keyboard selections.
Together with @dustdfg 's fix #3091, this makes both keyboard and mouse selections work as expected. See also the discussion in #3091.
Fixes #3055