if no onFling() is called, also reset the layout