Do not pop events unless the max size is reached

:eyes: Why is this a hardcoded value. What about `(Math.round(window.innerHeight / pixelsPerEvent))`?