Fixed a bug in mouseOffset() with Firefox, which lacks event.offsetX/Y properties.