Get your own customer support community
 

Bug in full page mode crashes seadragon, requires page reload

With very specific zoom, picture size and container sizes, going to full page mode gives an empty screen and seadragon never comes back (I can switch back to regular mode, but visualization is gone). Suddenly full page mode started doing this for me, it was very strange. After wasting too much time on this, it seems that seadragon doesn't like particular zoom, picture size and container sizes. Below's the basic code that reproduces this problem. In navigateTo, if I multiply zoom by 1.0001 or 0.9999, everything's perfect... I'm guessing this has to do with dividing by a power of 2 the full width of the image? But then I change the container width slightly (904 to 894) and that makes everything work too. Let me know if the actual test image files are needed. This is a pretty major issue for me of course, I can't go live without this fixed. Oh, there are no errors in firefox or safari. IE7 gives an error, but I'm not sure it has to do with this, I don't have access to IE7 at the moment. Seadragon crashes with the below on ALL browsers. Lastly, the below crashes if I don't zoom at all or I zoom in and then go to full page. However, if I zoom OUT even a tiny bit and then go to full page, it works perfect.


<!DOCTYPE html SYSTEM>
<html>
<head>
<image><size height="1400" width="92790" /></image>');
}

function onViewerResize(viewer) {
if (viewer.isFullPage()) {
alert("fullpage");
}
}

function onOpen() {
var zoomInteractiveThreshold = 0.125 * 92790 / viewer.viewport.getContainerSize().x;
navigateTo(0.931091712469016, 0.003771958185149262, zoomInteractiveThreshold/2);
}

function navigateTo(x, y, zoom) {
viewer.viewport.panTo(new Seadragon.Point(x, y), false);
viewer.viewport.zoomTo(zoom, null, false);
//viewer.viewport.zoomTo(12.830475663716815, null, false);
}

Seadragon.Utils.addEvent(window, "load", init);
<style type="text/css">
#container
{
width: 904px;
height: 357px;
background-color: black;
border: 1px solid black;
color: white; /* for error messages, etc. */
}
</style>
</head>

<body>

</body>
</html>
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium