Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created October 30, 2010 23:05
Show Gist options
  • Save hvgotcodes/655847 to your computer and use it in GitHub Desktop.
Save hvgotcodes/655847 to your computer and use it in GitHub Desktop.
contextMenu: function(evt) {
console.log('contextmenu');
evt.stopPropagation();
return YES;
// return this.handleRightClick(evt);
// return this.handleRightClick(evt);
},
mouseDown: function(evt) {
console.log('mousedown');
if (evt.which === 3){
console.log('handling right click');
return this.handleRightClick(evt);
}
return this.handleClickTouch(evt);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment