Skip to content

Commit

Permalink
Merge pull request #154 from sl0ki/master
Browse files Browse the repository at this point in the history
fixed coordinates bug
  • Loading branch information
Brian Gonzalez committed Jan 19, 2015
2 parents 896b88f + 16b0309 commit 5b54f77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jquery.pep.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@
this.$el.addClass('pep-start');
this.options.start.call(this, this.startEvent, this);
}

// Move before calculate position and fire events
this.doMoveTo(dx, dy);

// Calculate our drop regions
if ( this.options.droppable ) {
Expand All @@ -334,8 +337,6 @@
this.log({ type: 'event', event: ev.type });
this.log({ type: 'event-coords', x: this.ev.x, y: this.ev.y });
this.log({ type: 'velocity' });

this.doMoveTo(dx, dy);
};

Pep.prototype.doMoveTo = function(dx, dy) {
Expand Down

0 comments on commit 5b54f77

Please sign in to comment.