I recently updated to Raphael JS 2.0 and now my text dragging is laggy.
before (1.5): http://jsfiddle.net/jedateach/vZN72/
after (2.0): http://jsfiddle.net/jedateach/YyvSm/
Perhaps someone can fork my jsfiddle to show how it should be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Raphael 2.0, instead of Translate, you should make use of the Transform function, which adds a matrix transformation to the svg element.
Here is an example.
Note that the use of “…” in the transform string will append the previous transformations. If you want to store multiple transformations such as size and rotation, you’ll need to store the current values, and exclude “…”.