52 Commits

Author SHA1 Message Date
Kovid Goyal
82fcdf6272
Refactor keyboard handling in the viewer
No longer uses deprecated APIs
2019-09-13 09:12:31 +05:30
Kovid Goyal
cd64459718
Fix errors reported in the console for listeners that use preventDefault() 2019-09-13 09:12:26 +05:30
Kovid Goyal
dc922e5a33
Port many images fix to browser viewer as well 2018-06-06 18:13:39 +05:30
Kovid Goyal
d72b06b29b
Implement time left calculation for flow mode as well 2018-04-05 17:40:58 +05:30
Kovid Goyal
18b86edc5b
Browser viewer: Allow showing the time left in the current chapter/book in the header and footer areas of the book.
To use go to the preferences of the browser viewer and customize the
headers and footers to display the time left. Note that time left
in chapter only works correctly if chapters are in separate HTML files
in the book.
2018-04-05 09:40:11 +05:30
Kovid Goyal
575422bab2
Start work on time left display for browser viewer 2018-04-04 07:50:01 +05:30
Kovid Goyal
2e8692bfcb
Browser viewer: Allow long tapping a word to look it up in a dictionary or search the internet for it. Fixes #1738995 [[Browser Viewer] not possible to select text on Android](https://bugs.launchpad.net/calibre/+bug/1738995) 2018-02-21 17:16:07 +05:30
Kovid Goyal
f4a6f0117d
Implement header bar for footnote popup 2017-10-15 11:27:40 +05:30
Kovid Goyal
f4d003761a
A slightly better warning when column layout is broken 2017-08-03 18:31:04 +05:30
Kovid Goyal
ce4f774114
Viewer: Fix incorrect display of pages in paged mode for books that override the default box-sizing CSS property on the <body> element. Fixes #1700109 [css margin-left and margin-right problem](https://bugs.launchpad.net/calibre/+bug/1700109) 2017-06-27 15:28:33 +05:30
Kovid Goyal
bce5112268
Refactor scroll viewport handling 2017-05-28 11:38:29 +05:30
Kovid Goyal
757c9a5c9e
Fix scroll to element on Safari 2017-05-28 00:33:17 +05:30
Kovid Goyal
9d1075e761
Workaround for document.body.scrollWidth being incorrect on Safari 2017-05-28 00:10:16 +05:30
Kovid Goyal
6f384dd00a
Start work on implementing scrollIntoView for Safari 2017-05-27 23:30:45 +05:30
Kovid Goyal
eeca0a8489
Abstract out window.scrollTo 2017-05-27 21:32:43 +05:30
Kovid Goyal
d96b798d45
Remove unused code 2017-05-27 21:24:05 +05:30
Kovid Goyal
4f04afc176
Start abstracting the scroll viewport 2017-05-27 20:50:36 +05:30
Kovid Goyal
3ef6188559
DRYer 2017-05-27 17:45:50 +05:30
Kovid Goyal
f7733bd2b4
Remove unused code 2017-05-27 17:07:17 +05:30
Kovid Goyal
00334e9f1b
Workaround for window.innerWidth/Height being wrong inside an iframe on Safari 2017-05-27 15:59:23 +05:30
Kovid Goyal
67f95c3e1d
Fix swiping up/down in paged mode generating endless chapter changes 2017-05-21 13:39:34 +05:30
Kovid Goyal
7e0aecf855 Send last read position to server 2017-03-21 14:07:39 +05:30
Kovid Goyal
e79cb5ba79 Reset a couple more globals on flow change 2017-02-23 23:43:57 +05:30
Kovid Goyal
8867ca68fc Port fix for 1667357 to the new viewer code 2017-02-23 23:34:55 +05:30
Kovid Goyal
90d587905d typo 2017-02-23 23:34:32 +05:30
Kovid Goyal
2805e0b84b Reset paged mode globals when loading new flow 2017-02-23 23:26:22 +05:30
Kovid Goyal
658865e5ed Fix next page scrolling for pseudo-full screen layouts 2017-02-23 23:17:53 +05:30
Kovid Goyal
f0be3b99a5 Set column-fill: auto in paged mode 2017-01-14 16:40:22 +05:30
Kovid Goyal
8169ad1f7a Implement swipe up/down gestures tto move between sections 2017-01-01 21:05:49 +05:30
Kovid Goyal
f5c1f90dfa Start work on section tracking for the new viewer 2016-12-23 07:35:42 +05:30
Kovid Goyal
2be19e90ce Update RapydScript and replace type() by jstype() 2016-10-03 11:16:33 +05:30
Kovid Goyal
51b940dad9 Use 0 instead of auto for automatic pagination value of cols per screen 2016-09-25 13:49:32 +05:30
Kovid Goyal
63bac0b459 ... 2016-09-25 13:35:44 +05:30
Kovid Goyal
c3b015e75e Make the number of columns per screen automatic in paged mode 2016-09-25 13:32:51 +05:30
Kovid Goyal
1df8918fdd Finish up zone tap gestures 2016-08-22 15:01:04 +05:30
Kovid Goyal
0f98eb7ac9 Swiping should scroll by screen not column 2016-08-20 12:33:31 +05:30
Kovid Goyal
abe32ad8ca Implement swipe and hold gesture to turn pages rapidly 2016-08-19 12:11:52 +05:30
Kovid Goyal
a832c170fc Page turn gestures in paged mode 2016-08-19 09:27:38 +05:30
Kovid Goyal
b13f5db607 E-book viewer: Fix incorrect page turning when multiple pages are displayed on screen for books that wrap all their content in a single 100% height <div>. Fixes #1594657 [Private bug](https://bugs.launchpad.net/calibre/+bug/1594657) 2016-06-23 09:30:40 +05:30
Kovid Goyal
72a9cafdb5 E-book viewer: Remove workaround for bug in old versions of WebKit that could cause incorrect rendering of chapter titles in some rare circumstances. 2016-06-11 09:59:48 +05:30
Kovid Goyal
49d1ea8bb2 Dont interfere with the default forward and back shortcuts in the browser 2016-05-20 12:31:55 +05:30
Kovid Goyal
7d079aaea5 ... 2016-05-03 08:47:13 +05:30
Kovid Goyal
804fca17e2 Implement internal links in the reader 2016-04-30 15:18:28 +05:30
Kovid Goyal
5f3de701d4 Side margins in paged mode 2016-04-30 10:55:06 +05:30
Kovid Goyal
c0459236d7 Finish up keyboard handling in paged mode 2016-04-29 20:50:23 +05:30
Kovid Goyal
11136aab92 Ensure WebKit sizes columns correctly 2016-04-29 20:30:35 +05:30
Kovid Goyal
01d2572a9f More work on paged mode 2016-04-29 19:59:50 +05:30
Kovid Goyal
f21ea7f9ae ... 2016-04-29 14:19:59 +05:30
Kovid Goyal
15b7001e6a Make cols_per_screen a calculated value 2016-04-28 15:52:30 +05:30
Kovid Goyal
4e6395d1e0 ... 2016-04-28 15:48:08 +05:30