These are chat archives for openseadragon/openseadragon

9th
Mar 2017
sickrandir
@sickrandir
Mar 09 2017 13:47
hi guys, I'm trying to prevent OSD to zoom on canvas click only on certain conditions
I'm doing something like this:
scope.osd.addHandler('canvas-click', function (data) {
if (CONDITION) {
data.originalEvent.preventDefault();
data.originalEvent.stopPropagation();
}
});
the CONDITION is met and the code is executed however zooming happens anyway