From 2b64f74f7c9db0b55ed97777e92bdf0152f7e856 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Thu, 16 Mar 2017 15:16:10 +0100 Subject: [PATCH] Fix #1577. Reduced throttling interval --- web/client/components/map/leaflet/Map.jsx | 2 +- web/client/components/map/openlayers/Map.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/client/components/map/leaflet/Map.jsx b/web/client/components/map/leaflet/Map.jsx index 5b696939fd..324fa1f7d4 100644 --- a/web/client/components/map/leaflet/Map.jsx +++ b/web/client/components/map/leaflet/Map.jsx @@ -117,7 +117,7 @@ let LeafletMap = React.createClass({ }); } }); - const mouseMove = throttle(this.mouseMoveEvent, 500); + const mouseMove = throttle(this.mouseMoveEvent, 100); this.map.on('dragstart', () => { this.map.off('mousemove', mouseMove); }); this.map.on('dragend', () => { this.map.on('mousemove', mouseMove); }); this.map.on('mousemove', mouseMove); diff --git a/web/client/components/map/openlayers/Map.jsx b/web/client/components/map/openlayers/Map.jsx index 0e42d3a93a..8149739293 100644 --- a/web/client/components/map/openlayers/Map.jsx +++ b/web/client/components/map/openlayers/Map.jsx @@ -129,7 +129,7 @@ var OpenlayersMap = React.createClass({ }); } }); - const mouseMove = throttle(this.mouseMoveEvent, 500); + const mouseMove = throttle(this.mouseMoveEvent, 100); map.on('pointermove', mouseMove); this.updateMapInfoState();