No, this is, afaik, not (natively) possible and has been discussed before. The only condition under which it is possible to detect is when the channel buffer has reached it maximum size. If you are scrolled up, the buffer size will exceed its maximum size and only flush when you scroll down.

Given that this situation is never guaranteed, it's not reliable.