Headstart icon indicating copy to clipboard operation
Headstart copied to clipboard

dragging pdf preview

Open chreman opened this issue 7 years ago • 2 comments

for every new map that I open, on the first PDF i want to preview, the dragging only becomes possible after closing and opening it for a second time (FF 58.0.2 (64-bit) ubuntu 16.04).

here the log from the console, filtered for errors and warnings

TypeError: o is null
[Learn More]
selections.js:8:7
TypeError: window.getComputedStyle(...) is null
[Learn More]
toolbar.coffee:1
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
headstart.js%20line%2018%20%3E%20eval:612:4
jQuery.Deferred exception: window.getComputedStyle(...) is null [65]</Toolbar</o.prototype.getWidth@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/annotator.bundle.js?ea6139:209:2987
e@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/annotator.bundle.js?ea6139:221:1182
e@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/annotator.bundle.js?ea6139:185:312
[56]</<@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/annotator.bundle.js?ea6139:182:952
f@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/jquery.bundle.js?bf9aef:3:4366
o/</d<@https://cdn.hypothes.is/hypothesis/1.70.0/build/scripts/jquery.bundle.js?bf9aef:3:4682
 undefined
jquery.slim.js:3860:2
TypeError: o is null
[Learn More]
selections.js:8:7
TypeError: window.getComputedStyle(...) is null
[Learn More]
toolbar.coffee:1
offsetParent is not set -- cannot scroll
viewer.js:150:5

chreman avatar Feb 20 '18 20:02 chreman

I am having this issue on Windows now as well. But it only occurs, when I try to open a PDF on the first try that cannot retrieve the PDF ("Sorry, we were not able to retrieve the PDF for this publication...."). Then, the modal cannot be moved, no matter, how many times I open and close the same modal. Once I open the modal on a PDF that can be retrieved, it works fine.

pkraker avatar Mar 01 '18 14:03 pkraker

When you say now, you mean you didn't have the problem before? And - just to be clear, when you open first a PDF that can not be retrieved, then all the PDF's that you try to open are not draggable?

jaels avatar Mar 02 '18 12:03 jaels