Difference between web application and phonegap touch response

I am developing a mrdoob harmony based drawing application, which is a web application drawn on html canvas.

In my web application, it detects the location of the touch finger 1 and touch finger 2, and then locates the cursor between them to mark the drawing point. It works great on most smartphones as a web application, but after converting it to the PhoneGap Android app, I can find some kind of lag in drawing. In a web application, when I press two fingers on the screen, the cursor appears, but in the PhoneGap app the cursor and the start of drawing occurs after moving the fingers and with a time delay, which makes the drawing stiff.

What can I fix to make PhoneGap work as a web application? Is there any code modification instead of using some kind of plugins?

+4
source share

Source: https://habr.com/ru/post/1621074/


All Articles