fix for iOS8 button being sent as -1
fix for iOS8 button being sent as -1

bhargav175/mapjs,AbdulMuhsinSE/mapjs,pyxis777/mapjs,mindmup/mapjs,pyxis777/mapjs,pyxis777/mapjs,AbdulMuhsinSE/mapjs,danielrasmuson/mapjs,mindmup/mapjs,bhargav175/mapjs,danielrasmuson/mapjs,bhargav175/mapjs,danielrasmuson/mapjs,AbdulMuhsinSE/mapjs