From 3476c74f1cbef34ba26d2f6ec8c7fa1f8e67a933 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Tue, 5 May 2015 15:48:40 +0200 Subject: [PATCH] listens to drag event instead of move to re-render --- lib/torque/leaflet/canvas_layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torque/leaflet/canvas_layer.js b/lib/torque/leaflet/canvas_layer.js index 642ef77..fe52dd2 100644 --- a/lib/torque/leaflet/canvas_layer.js +++ b/lib/torque/leaflet/canvas_layer.js @@ -85,7 +85,7 @@ L.CanvasLayer = L.Class.extend({ }, this); map.on({ 'viewreset': this._reset }, this); - map.on('move', this.render, this); + map.on('drag', this.render, this); map.on('resize', this._reset, this); if (this.options.zoomAnimation) {