These are chat archives for openseadragon/openseadragon

1st
Sep 2016
Shaun Ellis
@sdellis
Sep 01 2016 14:16
I'm trying to disable the clickToZoom event in the config object, but can't seem to find any examples of how this is done. I even try viewer.removeAllHandlers() at runtime which seems to have no effect. Am I missing something?
Shaun Ellis
@sdellis
Sep 01 2016 14:43
Ok, perhaps I'm barking up the wrong tree. This seems to work for me viewer.setMouseNavEnabled(false) which allows me to temporarily disable mouse events.
Scott Lewis
@roof12
Sep 01 2016 15:37
@sdellis this is what i use, v2.2.0
this.viewer = new OpenSeadragon({ gestureSettingsMouse: { clickToZoom: false }, ... });
Shaun Ellis
@sdellis
Sep 01 2016 20:29
@roof12 thank you! That worked great, but I did realize that I need to essentially turn off all the mouse events for what I'm doing (interactive svg drawing on the image overlay). So, I now have a "drawing mode" toggle. :)
Scott Lewis
@roof12
Sep 01 2016 20:43
nice. i'm doing something very similar. i use OpenSeadragonViewerInputHook plugin. if i'm in drawing mode, i do drawing work for the event and prevent it from bubbling to the viewer. different ways of accomplishing the same thing.