dgcollier / jquery-rotate

Automatically exported from code.google.com/p/jquery-rotate
1 stars 0 forks source link

In IE8, calling rotate twice has no effect the second time. #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call rotate on an image
2. Call it again later to do another animated rotate

What is the expected output? What do you see instead?
Image is expected to rotate twice, this happens only once.

What version of the product are you using? On what operating system?
IE8, latest source.

Original issue reported on code.google.com by almagestfraternite@gmail.com on 28 Sep 2011 at 12:50

GoogleCodeExporter commented 9 years ago
This code works as a hack around the issue.

The example moves a needle around a speedometer.

 //needle
 $('img#needle').rotate(
  {bind:{
   click: function() {
    $(this).rotate({
     angle:currentNeedleDegrees,
     animateTo: scoreDegrees 
    }) 
   } 
  } 
 }); //rotate
 document.getElementById('needle').click();

Original comment by ke...@giszewski.com on 12 Oct 2011 at 6:14