Paulo Reis
af2cbf5a51
Force return true on a jquery handler; returning falsy values may have unexpected results.
2017-06-15 16:17:21 +01:00
Paulo Reis
fcf0a96933
Use selection.isCollapsed to check for empty selections.
2017-06-15 16:16:30 +01:00
Brian Gough
503822deb0
avoid possible exception if selection is undefined
...
defensive programming only
2017-06-15 14:32:00 +01:00
Brian Gough
b9804823f3
handle off-screen selection
...
when toggling the logs button the selection is off-screen and
selection.toString() is empty even when there is a selected range. Can
check for selection.type being "Range" instead.
2017-06-15 14:21:42 +01:00
Brian Gough
b04288ed44
avoid getting duplicate handlers for mouseup
2017-06-15 14:21:42 +01:00
Brian Gough
76dcde4dae
hide the text layer on reload
2017-06-15 13:42:19 +01:00
Paulo Reis
fbaa918927
Do not show the text layer when the user clicks outside pages. Remove some debug statements.
2017-06-15 12:32:04 +01:00
Paulo Reis
4985f7ca1c
Different approach: render all text layers while selecting (WIP).
2017-06-15 12:32:04 +01:00
Paulo Reis
786659dc1b
Render text layer on hovered pages (and adjacent ones).
2017-06-15 12:32:04 +01:00
Brian Gough
71275efebe
remove unused pdf dependency
2016-10-13 16:10:01 +01:00
Brian Gough
d53fa5de47
avoid exception in pdf viewer when no visible pages
2016-07-13 14:14:51 +01:00
Brian Gough
8c9fcfdd60
remove sentry downsampling on pdf errors
...
load errors should be less frequent now
2016-07-12 11:51:30 +01:00
Brian Gough
0ae639f1c3
enable per-page pdf downloads by default
2016-07-12 11:51:30 +01:00
Brian Gough
eaca616dd3
use progress bar for initial loading
2016-07-11 12:17:49 +01:00
Brian Gough
c657a02db5
render offscreen pages
2016-07-11 12:17:49 +01:00
Brian Gough
8c81f0a9ff
prerender offscreen pages
2016-07-11 12:17:49 +01:00
Brian Gough
16b58a9420
Merge pull request #268 from sharelatex/per-user-containers-part-3
...
add support for on-demand viewing of pdfs for per-user compiles
2016-06-29 14:16:24 +01:00
Brian Gough
991d3c7aa1
avoid exception when switching between full and split pdf view
2016-06-14 12:49:06 +01:00
Brian Gough
2840a7757f
fix bug in synctex position calculation for syncToCode
2016-06-14 12:32:54 +01:00
Brian Gough
3c31988e9a
enable on-demand viewing of pdfs for per-user compiles
2016-06-10 16:06:02 +01:00
James Allen
a196531a58
Move spinner add logic into same code pathway as spinner remove logic
2016-05-24 15:13:08 +01:00
James Allen
8a095a5144
Upgrade to PDF 1.3.91
2016-02-04 14:27:00 +00:00
Henry Oswald
7d109ce77d
null check error in pdf view
2015-04-23 10:40:11 +01:00
Brian Gough
0684fa36fd
upgrade pdfjs to version 1.0.1040
2015-03-31 14:53:27 +01:00
Brian Gough
3bdf2158c1
avoid exception on page size change
2015-03-19 14:26:06 +00:00
Brian Gough
8d092fc84d
replace .filter with _.filter to remove dependency on ES5
2015-03-03 16:45:37 +00:00
Brian Gough
353e9c86a8
sample only 1% of pdf exceptions due to volume of requests to sentry
2015-02-09 11:18:46 +00:00
Brian Gough
a13e78e853
catch rejected promises in pdfviewer
2015-01-26 16:07:49 +00:00
Brian Gough
b4f527b099
handle rejected promises in pdf viewer
2015-01-26 16:07:49 +00:00
Brian Gough
182dfabbae
fix pdf loadcount (no ?: operator in coffeescript)
2015-01-26 16:07:49 +00:00
Brian Gough
1a8438be5f
handle error loading pdf
2015-01-26 16:07:49 +00:00
Brian Gough
a5900c4b9a
handle case where Raven is not defined in pdf renderer
2015-01-26 16:07:48 +00:00
Brian Gough
63fd1f7c78
remove comments
2015-01-26 16:07:48 +00:00
Brian Gough
20d1a8b0f7
queue all pdf rescale/relayout events to avoid duplicate redraws
...
delay spinner by 100ms, since it now shows sooner
2015-01-26 16:07:48 +00:00
Brian Gough
866de306d6
added comment about double resize event
2015-01-26 16:07:48 +00:00
Brian Gough
bd8cfb1dae
fix pdf viewer to work without background scope.apply
2015-01-26 16:07:48 +00:00
Brian Gough
1160560bfb
add missing scope.$apply in pdf viewer event handlers
...
shows up now there are no apply's coming from the unsaved file check
2015-01-26 16:07:48 +00:00
Brian Gough
4ab0f00b8d
do not render offscreen pdf pages yet
...
they cause a delay without a visible spinner
2015-01-21 14:37:59 +00:00
Brian
62d5916883
replace $timeout by setTimeout in pdf viewer update
2015-01-20 21:06:53 +00:00
Brian
c8012dc22c
fix getVisiblePages in pdf viewer to allow optimisation
2015-01-20 20:35:29 +00:00
Brian Gough
debc3037ae
remove debugging from pdf viewer
2015-01-20 16:22:34 +00:00
Brian Gough
441bc63935
use setTimeout instead of $timeout in pdf scrollhandler
2015-01-20 16:20:38 +00:00
Brian Gough
591498a056
fix dom position calculation in pdf viewer
2015-01-20 16:20:19 +00:00
Brian
53e9086094
remove useless scope.$apply in pdf scrollhandler
2015-01-20 15:37:11 +00:00
Brian
721843695b
avoid using jquery in pdf scrollhandler to improve peformance
2015-01-20 15:36:52 +00:00
Brian Gough
96af4e0b4a
fix selection of prerender pages in pdf viewer
2015-01-20 14:28:43 +00:00
Brian Gough
f18f862be2
handle different page size in pdf viewer
2015-01-20 14:28:14 +00:00
Brian Gough
c9e019b4a7
clean up calculation of visible pdf pages and display on redraw
2015-01-20 11:06:40 +00:00
Brian Gough
776535f9f3
move pdf page visibility calculation up into pdfViewer directive
...
removes per-page watch for visibility
2015-01-19 16:55:44 +00:00
Brian Gough
906c9114cd
replace per-page pdf highlight $watch with highlight event
2015-01-19 14:26:14 +00:00