Skip to content

Commit

Permalink
Merge pull request #137 from stavarotti/master
Browse files Browse the repository at this point in the history
Added check for existence of preventDefault()
  • Loading branch information
philogb committed Dec 9, 2012
2 parents 6185675 + 622834d commit 6ce70fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Extras/Extras.js
Expand Up @@ -739,7 +739,7 @@ Extras.Classes.Navigation = new Class({

onMouseDown: function(e, win, eventInfo) {
if(!this.config.panning) return;
e.preventDefault();
e.preventDefault ? e.preventDefault() : e.returnValue = false;
$.addClass(this.canvas.getElement(), 'grabbing');
if(this.config.panning == 'avoid nodes' && (this.dom? this.isLabel(e, win) : eventInfo.getNode())) return;
this.pressed = true;
Expand Down

0 comments on commit 6ce70fd

Please sign in to comment.