Based on the documentation, it only specifies the Selection.direction based on the position of the boundary-points.
Selection.direction
(...) first indicated boundary point is after the second, then the corresponding selection must initially be backwards. If the first indicated boundary point is before the second, then the corresponding selection must initially be forwards. Otherwise, it must be directionless.
The spec does not mention what should happen in case of double or triple click, when a whole word/line is selected.
The Mozilla's position is that the direction should be "none" in case of double-click, since it does not involve any direction.
Bugzilla: Selection.direction's value is incorrect
My opinion is that the direction would be useful if its value were calculated based on the positions of the boundary points, because I don't see any advantage of knowing whether the selection was made by mouse dragging or multiple-click.
Based on the documentation, it only specifies the
Selection.directionbased on the position of the boundary-points.Selection.direction
The spec does not mention what should happen in case of double or triple click, when a whole word/line is selected.
The Mozilla's position is that the
directionshould be"none"in case of double-click, since it does not involve any direction.Bugzilla: Selection.direction's value is incorrect
My opinion is that the
directionwould be useful if its value were calculated based on the positions of the boundary points, because I don't see any advantage of knowing whether the selection was made by mouse dragging or multiple-click.