Closed cttobin closed 4 years ago
I'll try to fix it in the next few days, thanks for the report! Also thank you for using it and the compliments!
@federico-moretti love this simple library. do you have any plans to push this fix out to npm anytime soon? if not i can just pull the repo directly. thanks!
Fixed in v2.1.0
@federico-moretti thanks! :)
Nice little library you have here. I have no idea if you're still maintaining it, but relative/absolute/fixed positioned elements cause mouse events to have the wrong coordinates. See here for an example.
I think it might be related to how you use
pageX
andpageY
withoffsetLeft
andoffsetTop
in the mouse events.