Skip to content

Commit

Permalink
Fixed usage of undefined constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdyk committed Jun 11, 2014
1 parent 8cda866 commit ccc3b50
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions js/shared/DSRV.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,33 +335,45 @@ DSRV.prototype = {
touchStartEvent: function (event)
{
if( event.touches.length == 1 ) {
event.button = this.ROTATE;
event.button = 0;
this.mousePressEvent(event);
}
else if( event.touches.length == 2 ) {
event.button = this.ZOOM;
event.button = 2;
this.mousePressEvent(event);
}
else if( event.touches.length == 3 ) {
event.button = 1;
this.mousePressEvent(event);
}
},
touchEndEvent: function (event)
{
if( event.touches.length == 1 ) {
event.button = this.ROTATE;
event.button = 0;
this.mouseReleaseEvent(event);
}
else if( event.touches.length == 2 ) {
event.button = this.ZOOM;
event.button = 2;
this.mouseReleaseEvent(event);
}
else if( event.touches.length == 3 ) {
event.button = 1;
this.mouseReleaseEvent(event);
}
},
touchMoveEvent: function (event)
{
if( event.touches.length == 1 ) {
event.button = this.ROTATE;
event.button = 0;
this.mouseMoveEvent(event);
}
else if(event.touches.length == 2) {
event.button = this.ZOOM;
event.button = 2;
this.mouseMoveEvent(event);
}
else if(event.touches.length == 3) {
event.button = 1;
this.mouseMoveEvent(event);
}
},
Expand Down

0 comments on commit ccc3b50

Please sign in to comment.