getPointer bounds for IE8, fixes #1550 #1349 #1693

includes change from @asturur to improve readability
fixing whitespaces
Merge pull request #1695 from zigotica/master

getPointer bounds for IE8, fixes #1550 #1349 #1693