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

includes change from @asturur to improve readability