Support resrcOnResizeDown for window resize events

With this change the exectued code path remains the same
as before for window.resize events