[minor] use less than 1px value instead of == 0 to check bottom distance, less buggy on ios