Raphael.FreeTransform icon indicating copy to clipboard operation
Raphael.FreeTransform copied to clipboard

Touch Events work only once

Open ankurmittal opened this issue 13 years ago • 3 comments

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?

ankurmittal avatar Oct 16 '12 05:10 ankurmittal

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.

AliasIO avatar Oct 16 '12 07:10 AliasIO

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(......).

ankurmittal avatar Oct 16 '12 08:10 ankurmittal

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.

AliasIO avatar Oct 16 '12 08:10 AliasIO