Skip to content

Commit

Permalink
update after nice review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCrisostomo committed Aug 10, 2014
1 parent e49ffa3 commit 8cab2e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Drag/Drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var Drag = new Class({
})(this.element);
this.selection = 'selectstart' in document ? 'selectstart' : 'mousedown';

this.compensateScroll = {'start': {}, 'diff': {}, last: {}};
this.compensateScroll = {start: {}, diff: {}, last: {}};

if ('ondragstart' in document && !('FileReader' in window) && !Drag.ondragstartFixed){
document.ondragstart = Function.from(false);
Expand All @@ -86,7 +86,6 @@ var Drag = new Class({
drag: this.drag.bind(this),
stop: this.stop.bind(this),
cancel: this.cancel.bind(this),
sumValues: this.sumValues.bind(this),
eventStop: Function.from(false),
scrollListener: this.scrollListener.bind(this)
};
Expand Down Expand Up @@ -138,7 +137,7 @@ var Drag = new Class({
if (options.preventDefault) event.preventDefault();
if (options.stopPropagation) event.stopPropagation();
this.compensateScroll.start = this.compensateScroll.last = this.offsetParent.getScroll();
this.compensateScroll.diff = {x:0, y:0};
this.compensateScroll.diff = {x: 0, y: 0};
this.mouse.start = event.page;
this.fireEvent('beforeStart', this.element);

Expand Down

0 comments on commit 8cab2e9

Please sign in to comment.