diff --git a/index.js b/index.js index 28ca45c..999a568 100644 --- a/index.js +++ b/index.js @@ -160,6 +160,6 @@ function panZoom (target, cb) { pinch.disable() - raf.cancel(frameId) + window.cancelAnimationFrame(frameId) } }