From bc5e235822646b5da318f9307da11b4a54304d17 Mon Sep 17 00:00:00 2001 From: kinto Date: Tue, 14 Mar 2017 19:23:07 +0100 Subject: [PATCH] Add comment instructions for using preventDefaultAction parameter in canvas-click event --- src/viewer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewer.js b/src/viewer.js index 69c4b133..d3e68534 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2484,6 +2484,7 @@ function onCanvasClick( event ) { * @property {Boolean} quick - True only if the clickDistThreshold and clickTimeThreshold are both passed. Useful for differentiating between clicks and drags. * @property {Boolean} shift - True if the shift key was pressed during this event. * @property {Object} originalEvent - The original DOM event. + * @property {Boolean} preventDefaultAction - Set to true to prevent default click to zoom behaviour. Default: false. * @property {?Object} userData - Arbitrary subscriber-defined object. */ this.raiseEvent( 'canvas-click', canvasClickEventArgs);