OpenKnowledgeMaps / Headstart

A framework for creating web-based knowledge maps
https://openknowledgemaps.org/
MIT License
194 stars 42 forks source link

dragging pdf preview #186

Open chreman opened 6 years ago

chreman commented 6 years ago

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
pkraker commented 6 years ago

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.

jaels commented 6 years ago

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?