Skip to content

Commit

Permalink
throttle mousemove, ref #2334
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Mar 25, 2016
1 parent 7ca58c0 commit 4eef09d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/ui/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ function Interaction(map) {
}

util.bindHandlers(this);

this._onMouseMove = util.throttle(this._onMouseMove, 16);
}

Interaction.prototype = {
Expand Down

0 comments on commit 4eef09d

Please sign in to comment.