Skip to content

Commit

Permalink
Merge pull request #70 from herrernst/fix-bg-rAF
Browse files Browse the repository at this point in the history
fix bg rAF
  • Loading branch information
ovidiuch committed Jan 2, 2015
2 parents 00bc477 + d59b6bc commit dbc3c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dragdealer.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ Dragdealer.prototype = {
}
if (Math.abs(diff[0]) > this.valuePrecision[0] ||
Math.abs(diff[1]) > this.valuePrecision[1]) {
this.value.current[0] += diff[0] * this.options.speed * this.timeOffset / 25;
this.value.current[1] += diff[1] * this.options.speed * this.timeOffset / 25;
this.value.current[0] += diff[0] * Math.min(this.options.speed * this.timeOffset / 25, 1);
this.value.current[1] += diff[1] * Math.min(this.options.speed * this.timeOffset / 25, 1);
} else {
this.groupCopy(this.value.current, this.value.target);
}
Expand Down

0 comments on commit dbc3c62

Please sign in to comment.