Firefox fix

Fixed the offsetX/Y issue in FF