Pause scroll event while resizing window