This supposedly fix a flaky test. If the event reaches before the viewport resolution is known, test would fail. Now the viewport resolution is adquired in a new Thread and the resolution is not compared until the event and viewport resolution are received