calibre/imgsrc/srv/selection-handle-vertical.svg
Mark W. Gabby-Li 9b79d6a5fa Support Selection Handles on Vertical/RTL Books
- Pass vertical/rtl mode into selection code.
 - Added new image for vertical selection handle.

selection_bar.pyj:
 - Made code agnostic to text direction.
 - Changed names to start and end rather than left and right to reflect new behavior.
 - Track vertical/rtl state from selection message.
 - Handle selection position modified to support all possible text orientations.
 - Switch to vertical selection handle in vertical mode.
 - Cap selection size at 60px to avoid comically large (and unusable) handles when selecting large element, such as an image.

select.pyj:
 - Improved selection behavior when selected range extents are on nodes by search the node's DOM tree for something with a reasonable bounding box.
 - To work around bugs with collapsed range rects and vertical text, use character bounding boxes in most cases.
 - Add width to selection range extents.
2020-08-28 00:26:18 -07:00

7 lines
570 B
XML