Skip to content

Commit

Permalink
Call click with event for touches.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrynearson committed Jul 14, 2011
1 parent f3dc3a4 commit 7a0cba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/mm/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ wax.mm.interaction = function(map, tilejson, options) {
_downLock = false;
if (e.type === 'touchend') {
// If this was a touch and it survived, there's no need to avoid a double-tap
click(_d);
click(e, _d);
} else if (Math.round(pos.y / tol) === Math.round(_d.y / tol) &&
Math.round(pos.x / tol) === Math.round(_d.x / tol)) {
// Contain the event data in a closure.
Expand Down

0 comments on commit 7a0cba1

Please sign in to comment.