From 4eb386463938e1c0bf97ae8f4665174b7a70259f Mon Sep 17 00:00:00 2001 From: Adinata Thayib Date: Wed, 11 Jan 2017 20:11:43 -0800 Subject: [PATCH] Fix navigator doesn't get constrained although viewer have constrainDuringPan options on --- src/navigator.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/navigator.js b/src/navigator.js index fe977d0c..f7d1abd9 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -405,6 +405,9 @@ function onCanvasDrag( event ) { event.delta ) ); + if( this.viewer.constrainDuringPan ){ + this.viewer.viewport.applyConstraints(); + } } }