Firefox mobile browser doesn't use window.event. So changed the code to use the local event variable instead
Merge pull request #280 from K0den/firefox_mobile_browser_fix

Firefox mobile browser fix