I’ve read 3-5 topics about mouse offset, but i still can’t get where is the mess.
In my case everything works fine in 60%. In other 40% mouse is offset. Demo here.
Sometimes object position doesn’t relate to mouse behavior. (IE & Chrome have the bigest mess)
I’ve tried to edit stylesheets and parent div but nothing. The worst thing: i don’t see any regularity. I will be greatful for any help.
It is unbelievable!
I’ve fixed the bug. You will never believe me…
In the top of the page it was code like:
This code has no reasonable relation to canvas. This class have simple css:
{float: left; margin: 10px 0 0 0;}But for some reason this code forced mouse offset in canvas. I remade this code like:
… and now everything thinks to work fine.
I dont see any corelation between these events but the fact is the fact. That was a damn hard day for me…