Skip to content

Commit

Permalink
Fix geosolutions-it#1577. Reduced throttling interval
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Mar 16, 2017
1 parent 9195837 commit 2b64f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/client/components/map/leaflet/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion web/client/components/map/openlayers/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2b64f74

Please sign in to comment.