Kovid Goyal
1e24b66dad
Simplify the selection extents function
2020-08-22 18:48:31 +05:30
Kovid Goyal
72fcbbc93a
Restore triple-click to select paragraphs
2020-08-22 18:48:31 +05:30
Kovid Goyal
62c82232c5
Show an indicator for a highlight that has notes
2020-08-22 18:48:31 +05:30
Kovid Goyal
5361db6916
Ensure selection bar position is updated after a resize
2020-08-22 18:48:29 +05:30
Kovid Goyal
0319f8325a
Selection bar should not popup during searches
2020-08-22 18:48:28 +05:30
Kovid Goyal
fdc3c82dbf
Viewer: Allow using preferences when no book is open
2020-08-22 18:48:27 +05:30
Kovid Goyal
83490b316f
Implement scrolling keyboard shortcuts when selection bar is showing
...
Also remove unused code
2020-08-22 18:48:27 +05:30
Kovid Goyal
16d241b9d2
Edit button on highlight panel works again
2020-08-22 18:48:26 +05:30
Kovid Goyal
8fa67e7bfd
Track annot over entire selection
...
Also work on notes/color editor panel
2020-08-22 18:48:25 +05:30
Kovid Goyal
86debe8dd0
Dont show selection bar during drag scroll
2020-08-22 18:48:24 +05:30
Mark W. Gabby-Li
d9a343dad6
Support for Books in RTL Languages, Such as Hebrew
...
Three parts: RTL layout support, made inputs behave naturally in RTL modes, and updated tutorial for RTL books.
To add RTL layout support:
‣ Don't force LTR layout on DOM when loading.
‣ Disable "overflow: hidden" in RTL mode to compensate for an issue in Chrome, and disable scrollbars on all browsers to compensate for the side effect of this turning on scrollbars.
‣ Have viewport hide the RTL mode by negating scrolls and viewport position requests in RTL mode.
‣ Initialize viewport in paged mode layout so that it properly saves RTL mode.
‣ Remove all raw calls to pageXOffset and pageYOffset
‣ Put viewport_to_document in ScrollViewport so that it can abstract away RTL mode in this case, too.
‣ Get rid of calls to reset_transforms and make it private, since it is only called to prepare for viewport_to_document. Put the call there, instead.
‣ Use bounding box right instead of left for position of various elements when the viewport is in RTL mode, since the right side is the beginning of the element in this case.
To made input behave naturally in RTL:
‣ Get page progression direction from ePub.
‣ Add rtl_page_progression() function to return whether we're in this mode.
‣ Added support to tell page advance functions whether they should flip their direction if RTL is on.
‣ Changed touch behavior to support different position for going back and forward in RTL books.
Tutorial changes:
‣ Flipped tutorial so that next and previous page are reversed in position and size in RTL mode.
‣ Added a new counter so that RTL tutorial is shown even if user has already seen LTR tutorial.
2020-08-22 18:48:22 +05:30
Kovid Goyal
8cbb068b04
Fix multi-wrap when editing existing highlight
2020-08-22 18:48:21 +05:30
Kovid Goyal
c99f18eb62
...
2020-08-22 18:48:20 +05:30
Kovid Goyal
709a9658a9
Clear selection after removing highlight
2020-08-22 18:48:20 +05:30
Kovid Goyal
8a4cc1d7ba
position selection bar at mouse x during drag
2020-08-22 18:48:19 +05:30
Kovid Goyal
6f919231f1
Misc selection bar work
...
Use an object for tracking selections
Track mouse position while selecting
Remove copy selection action from chrome
2020-08-22 18:48:19 +05:30
Kovid Goyal
2078309b52
Show highlight notes in the select bar
2020-08-22 18:48:19 +05:30
Kovid Goyal
f037fe8dbe
Misc fixes for editing highlights
2020-08-22 18:48:18 +05:30
Kovid Goyal
4c05616e7d
Buttons to finish editing highlight
2020-08-22 18:48:18 +05:30
Kovid Goyal
106c84e8b7
Add a highlight button to the selection bar
2020-08-22 18:48:18 +05:30
Kovid Goyal
1c38d64b1a
Add some basic operations to the selection bar
2020-08-22 18:48:18 +05:30
Kovid Goyal
2f9c735d2f
Start work on displaying selection bar
2020-08-22 18:48:17 +05:30
Kovid Goyal
05516bfd54
Track the selection position in the chrome
2020-08-22 18:48:17 +05:30
Kovid Goyal
23fb259c42
Viewer: Allow drag scrolling in paged mode as well
2020-08-22 18:48:17 +05:30
Kovid Goyal
1f124726c2
Avoid error when selecting a non-existent range wrapper
2020-08-22 18:48:16 +05:30
Kovid Goyal
1148208f45
Implement drag scrolling for highlight handles
2020-08-22 18:48:13 +05:30
Kovid Goyal
14b87b8446
Add syncing of annotations along with last read position
2020-08-22 18:48:12 +05:30
Kovid Goyal
0ce941104d
Viewer: In flow mode, implement drag scrolling. Fixes #1880707 [there is no auto scroll when to try text select]( https://bugs.launchpad.net/calibre/+bug/1880707 )
2020-06-04 07:32:29 +05:30
Kovid Goyal
501ee2252c
Removing of highlights works
2020-05-12 17:07:39 +05:30
Kovid Goyal
2c45544a16
Add and edit highlight buttons work
2020-05-12 16:10:09 +05:30
Kovid Goyal
7abe0a61dc
Re-layout on font size change in paged mode
2020-04-27 14:27:39 +05:30
Kovid Goyal
67ed07db66
Viewer: Fix a regression that broke searching in flow mode. Fixes #1874877 [In the viewer search when a value is found receive and Uncaught RangerError]( https://bugs.launchpad.net/calibre/+bug/1874877 )
2020-04-25 18:11:00 +05:30
Kovid Goyal
d276e5be45
Do not update toc anchor map repeatedly
2020-04-25 18:04:42 +05:30
Kovid Goyal
016bd5458c
DRYer
2020-04-16 19:47:33 +05:30
Kovid Goyal
b468f72ba7
Viewing annots should be triggered by double click/long tap not single click/tap
2020-04-16 15:34:03 +05:30
Kovid Goyal
9d2f05b516
Viewer: Allow double clicking or long tapping on images to view then in a new window. Fixes #1872759 [E-book viewer: double clicking on image to evoke "View image" window.]( https://bugs.launchpad.net/calibre/+bug/1872759 )
2020-04-16 13:25:56 +05:30
Kovid Goyal
807e5f0403
Implement viewing of highlight notes by clicking on the highlight
2020-04-15 21:41:07 +05:30
Kovid Goyal
a00cde1120
Implement adding notes when creating annotations
2020-04-15 10:11:35 +05:30
Kovid Goyal
b40951e5dc
Clicking on an existing highlight should edit it
2020-04-13 16:36:58 +05:30
Kovid Goyal
a3e0461c73
Add a button to copy the current selection when creating highlights
2020-04-13 12:33:07 +05:30
Kovid Goyal
a2cb25453d
Highlights are now saved and re-applied in books
2020-04-12 21:18:46 +05:30
Kovid Goyal
d61273b7cd
When applying a new highlight over a single existing one, replace it
2020-04-11 09:47:18 +05:30
Kovid Goyal
e492c88c9a
...
2020-04-11 09:41:53 +05:30
Kovid Goyal
37a60e366a
Remove overlapping highlights when applying a new one
2020-04-11 09:40:28 +05:30
Kovid Goyal
33fed39269
Make extending the selection on scroll more robust
2020-04-08 20:16:52 +05:30
Kovid Goyal
73a08a9e15
Reset search cache when applying highlight
2020-04-08 14:56:10 +05:30
Kovid Goyal
b887ca602a
Get highlight range as CFI
2020-03-24 14:30:30 +05:30
Kovid Goyal
5d9515c115
Implementation of marking selection using spans
2020-03-24 13:51:32 +05:30
Kovid Goyal
26d405a957
Work on controls for highlighting UI
2020-03-22 19:50:51 +05:30
Kovid Goyal
8dc0e875c9
Handle multi-page highlight creation
2020-03-22 09:18:21 +05:30