weepy / jquery.path

Animatation for arcs and bezier curves with jQuery
http://weepy.github.com/jquery.path/
407 stars 79 forks source link

360 loop using Arc #15

Open nebuil opened 12 years ago

nebuil commented 12 years ago

I have tried to go from degree 0 to 360, or from 0 to 0, using dir: -1 and it doesn't work, and same issue trying to go from degree 360 to 0, or from 0 to 0, using dir: 1. I have solved it just modifying following lines, adding equal (=) to the comparisons:

while ( this.start >= this.end && this.dir > 0 ) {
  this.start -= 360;
}

while ( this.start <= this.end && this.dir < 0 ) {
  this.start += 360;
}
weepy commented 8 years ago

can you make this into a pull request ?