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:
https://codepen.io/vinar22/pen/aejmdp

also i recorded video that represent my problem:
https://onedrive.live.com/?authkey=!AOnxLqHiOgg8TP4&cid=0C3E5B55511648AB&id=C3E5B55511648AB!76966&parId=root&o=OneUp

Thank you!

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

1 Like