mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
- 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.
7 lines
570 B
XML
7 lines
570 B
XML