These are chat archives for openseadragon/openseadragon

Apr 2018
{ gilles : ''François'' }
Apr 20 2018 07:09
@iangilman you can see it live here (but the js is minified) when you open this on desktop, the image si dragable/panable when it is not zoomed, and that is not the behaviour I want. here is the code used to setup openseadragon :
            var viewer = OpenSeadragon({
                // zoomPerClick : 1,
                defaultZoomLevel:   1,
                minZoomLevel:   1,
                maxZoomLevel:   4,
                visibilityRatio: 1,
                id: "vestiaire-zoomable",
                prefixUrl: "/static/js/openseadragon/images/",
                tileSources: [{
                    type: 'image',
                    url:  "/static/images/vestiaire-hd.jpg",

(I will try to come up with a codepen as soon as possible)
thanks anyway
Ian Gilman
Apr 20 2018 16:34
@jilfransoi_twitter You can drag it, but now it snaps back fully when you drop it. That's what the visibilityRatio did for you.
Sounds like you don't want it to even move, though. Use constrainDuringPan: true for that.