title: Scrolling down triggers refresh instead of revealing the toolbar
body: <p>I started using the new CoordinatorLayout and I ran into this issue:</p>
  <p><img src="https://i.stack.imgur.com/lLcm7.gif" alt="demo" /></p>
  <p>As you can see when I try to scroll down when the toolbar is partially visible and the recylcerview is at the top position it triggers the refresh event instead of pulling down the toolbar. The user has to scroll up than down again to reveal it.</p>
  <p>Layout XML looks something like this:
  activity_main.xml:</p>
  <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/drawer_layout&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:fitsSystemWindows=&quot;true&quot;&gt;
  
      &lt;android.support.design.widget.CoordinatorLayout
          xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;&gt;
  
          &lt;android.support.design.widget.AppBarLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id=&quot;@+id/toolbar&quot;
                  style=&quot;@style/customActionBar&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:background=&quot;?attr/colorPrimary&quot;
                  android:minHeight=&quot;?attr/actionBarSize&quot;
                  app:layout_scrollFlags=&quot;scroll|enterAlways&quot;/&gt;
  
          &lt;/android.support.design.widget.AppBarLayout&gt;
  
          &lt;FrameLayout
              android:id=&quot;@+id/container&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              app:layout_behavior=&quot;@string/appbar_scrolling_view_behavior&quot;/&gt;
  
      &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id=&quot;@+id/navigation_view&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_gravity=&quot;start&quot;
          android:background=&quot;@android:color/white&quot;
          app:headerLayout=&quot;@layout/navigation_drawer_header&quot;
          app:menu=&quot;@menu/navigation_items&quot; /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  <p>fragment_main.xml:</p>
  <pre><code>&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;android.support.v4.widget.SwipeRefreshLayout
          android:id=&quot;@+id/swipe_refresh&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;&gt;
  
          &lt;android.support.v7.widget.RecyclerView
              android:id=&quot;@+id/recycler_view&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:clipToPadding=&quot;false&quot;
              android:padding=&quot;8dp&quot;
              android:scrollbars=&quot;none&quot; /&gt;
  
      &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  <p>Ther SwipeRefreshLayout is in a FrameLayout becuase there are more elements in the fragment in my app.</p>
  <p>Any help would be appreciated.</p>