Forum Discussion
when I rotate the ruler and then move the ruler, the ruler rotates back to its original position
Hi. In my project, when I rotate the ruler and then move the ruler, the ruler rotates back to its original position. I want the ruler to be dragged and dropped as it rotates. Please help. Thank you
Hello,
It looks like the rotation of your ruler is controlled by Javascript. We don't provide support for Javascript, but an alternative solution is to make use of states to achieve the effect. What you'll want to do is to add multiple states to your object, with each state containing a rotated version of the ruler image.
Here's a quick recording to verify that this method will allow learners to click and drag a rotated version of the image file:
Note that it might take multiple states to achieve a nice sweeping effect for the rule.
- mahbag-e8b66d7eCommunity Member
Hello and thank you. I want the ruler to rotate from one degree to 180 degrees with the movement of the slider. I have to consider 180 modes for it, which is hard work
Thanks for the update. I’m sure one of our talented community members who have Javascript experience will have some suggestions for you.
- mahbag-e8b66d7eCommunity Member
Hi,i wish.
- mahbag-e8b66d7eCommunity Member
i wish