Resizing works correctly after debounce actually got called