diff --git a/js/listeners/AnimatedPanZoomListener.js b/js/listeners/AnimatedPanZoomListener.js index 260242b55..95d318957 100644 --- a/js/listeners/AnimatedPanZoomListener.js +++ b/js/listeners/AnimatedPanZoomListener.js @@ -800,7 +800,7 @@ class AnimatedPanZoomListener extends PanZoomListener { } /** - * Interrupt the listener. + * Interrupt the listener. Cancels any active input and clears references upon interaction end. * @public */ interrupt() { @@ -810,6 +810,14 @@ class AnimatedPanZoomListener extends PanZoomListener { super.interrupt(); } + /** + * "Cancel" the listener, when input stops abnormally. Part of the scenery Input API. + * @public + */ + cancel() { + this.interrupt(); + } + /** * Returns true if the Intent of the Pointer indicates that it will be used for dragging of some kind. * @private