takes tab focus into account when counting viewable intervals