konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://konvajs.org/
Other
11.72k stars 934 forks source link

Transformer blocks konva after using multitouch #1767

Closed kamil-zak closed 5 months ago

kamil-zak commented 6 months ago

Using Transformer on the touch screen, everything works fine until I touch two corners at the same time and then move it, everything freezes. Nothing can be moved or transformed. When touching with two fingers there are two onTransformStart events, but when released there is only one onTransformEnd event. In console there are no any errors. The problem appeared in version 9.3.5, in version 9.3.4 everything works fine.

This issue also exists on demo page of Transformer: https://konvajs.org/docs/select_and_transform/Transform_Events.html

Problem occurs on both chrome and firefox.

lavrton commented 5 months ago

I can't reproduce that on the iPad and iPhone.

kamil-zak commented 5 months ago

I reproduced this on my iPhone. I noticed new condition. You need to touch one corner, and without making any move touch second corner. (two touchstart events, no touchmove). After that if you make any move everything will freeze. If you start moving before second touch start this problem not occur

https://github.com/konvajs/konva/assets/85481234/e0e92953-2a7f-4cd8-ab05-10d21ae8a717

lavrton commented 5 months ago

Thanks for the report. Release with a fix is published.