lib/ProMotion/table/extensions/refreshable.rb in ProMotion-2.1.0 vs lib/ProMotion/table/extensions/refreshable.rb in ProMotion-2.2.0

- old
+ new

@@ -17,9 +17,12 @@ def start_refreshing return unless @refresh_control @refresh_control.beginRefreshing + + # Scrolls the table down to show the refresh control when invoked programatically + table_view.setContentOffset(CGPointMake(0, table_view.contentOffset.y-@refresh_control.frame.size.height), animated:true) if table_view.contentOffset.y > -65.0 end alias :begin_refreshing :start_refreshing def end_refreshing return unless @refresh_control