Skip to content

Commit

Permalink
minor fix to touch click support
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Mar 30, 2016
1 parent e404810 commit 67f3023
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ TouchHandler.prototype = {
var pointer = this._touchState.pointers[0];
var picked = this._viewer.pick(
{ x : pointer.x - rect.left, y : pointer.y - rect.top });
this._viewer._dispatchEvent(event, 'touchend', picked);
this._viewer._dispatchEvent(event, 'click', picked);
}
},
};
Expand Down
1 change: 0 additions & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ function Viewer(domElement, opts) {

if (this._options.click !== null) {
this.on('click', this._options.click);
this.on('touchend', this._options.click);
}
if (this._options.doubleClick !== null) {
this.on('doubleClick', this._options.doubleClick);
Expand Down

0 comments on commit 67f3023

Please sign in to comment.