[[ Bug 13257 ]] Used a better way to determine thumb position that does not involve floats