I'm new to programming. I'm making something like vector editor with svg.js I've read documentation and didn't understand how to make custom events at all. Can you guys show an example of drag event?
Actually i'm trying to achieve elements to be removed on drag. For example i want to make tooltip following mouse cursor, that outputs current mouse coordinates. But it gets duplicated every onmousemove event.