Emit click event by x, y coords

Hi! I starting to develop project three.js + fabric.js there you can to transform / rotate texture on the object. Controls works perfect on the fabric canvas, but i want to get opportunity to control texture on the object too. I found coords on model and sync it with coords on canvas fabric js. But i don t know how to set correct click event and get full manage this clicked objects. I set custom event, where i transferred x,y coords. Unfortunately Its works wrong. After click event coords of fabric s object knock down

Please, look at this codepen:

also i recorded video that represent my problem:

Thank you!

Hi! Now this problem is solved! Please, look at this stackoverflow topic

1 Like