void _recyclerView_Touch(object sender, TouchEventArgs e) { Console.WriteLine("ExtendedWebViewRenderer_Touch"); var ev = e.Event; MotionEventActions action = ev.Action & MotionEventActions.Mask; switch (action) { case MotionEventActions.Down: _startEventY = ev.GetY(); _heightChange = 0; Element.RaiseOnStartScroll(); // Console.WriteLine ("START start ", _startEventY); break; case MotionEventActions.Move: float delta = (ev.GetY() + _heightChange) - _startEventY; Element.RaiseOnScroll(delta, _recyclerView.GetVerticalScrollOffset()); // Console.WriteLine ("scrolling delta is {0}, change {1}, start {2}", delta, _heightChange, _startEventY); // Console.WriteLine ("SCROLLY {0},", _recyclerView.GetVerticalScrollOffset ()); break; case MotionEventActions.Up: Element.RaiseOnStopScroll(); break; } e.Handled = false; }
public override void OnScrolled(RecyclerView recyclerView, int dx, int dy) { base.OnScrolled(recyclerView, dx, dy); _gridView.RaiseOnScroll(dy, _recyclerView.GetVerticalScrollOffset()); Console.WriteLine(">>>>>>>>> {0},{1}", dy, _recyclerView.GetVerticalScrollOffset()); }