Make it works on FireFox and other clients which doesn't support event.offset{X,Y}.