How to make fabricjs to work on a mobile device?

Hi all. There is a need in obtaining of coordinates when the movement of the finger, respectively the standard event fabricjs mouse:move not working what to use? There is an assumption that is fabricjs.com/touch-events but I can't make a custom build, I have an error
June 14th 19 at 20:16
1 answer
June 14th 19 at 20:18
var body = document.body;
var move = function(e) {
 console.log("x:" + e.pageX + "| y: "+ e.pageY);
};

body.addEventListener("touchmove", move);
body.addEventListener("mousemove", move);

// and don't need any factory-firebrick
Yeah, it's all cool, of course, but the library is always used for something. I need to change the generated objects - Kennedi_Thompson commented on June 14th 19 at 20:21
but you are not forced to use all the library functions? Especially such a... ahem... not very good as fabric. - Craig.Lebsack79 commented on June 14th 19 at 20:24
the insights from your own experience? Can you recommend something better? I simply do not rummage in this thread. - Kennedi_Thompson commented on June 14th 19 at 20:27
Yes , insights from my own experience. Not knowing your goals it's hard to advise. It is possible that there is no alternative. - Craig.Lebsack79 commented on June 14th 19 at 20:30

Find more questions by tags JavaScript