Raphael.FreeTransform
Raphael.FreeTransform copied to clipboard
Touch Events work only once
Hi, Thank you for making such a wonderful product.
The issue I have with it is that on tabs and ipads the touch event work only once (probably due to toFront function which uses appendChild and then strips the element from all the touch events).
Can there be a workaround for the same?
Are you sure bindings are lost? Because it doesn't seem to affect dragging in a regular browser.
As a workaround you may be able to use FreeTransform's callback function and add the binding back if it's removed.
Ya I am sure that binding is lost(only touch events).
The workaround you suggested would not work as elements affected are disc and resize boxes, and the binding handlers are applied inside the lib js, on which i have no control.
For eg javascript ft.handles[axis].disc.drag(......).
You're right that wouldn't work. I believe touch simply implements click in Raphael so I'm not sure what's going on, I'll have to look into it. I don't own a tablet though.