Exemplo n.º 1
0
 /// <summary>
 /// Handles touch move events.
 /// </summary>
 /// <param name="e">The motion event arguments.</param>
 /// <returns><c>true</c> if the event was handled.</returns>
 private bool OnTouchMoveEvent(MotionEvent e)
 {
     var currentTouchPoints = e.GetTouchPoints(Scale);
     var args = new OxyTouchEventArgs(currentTouchPoints, this.previousTouchPoints);
     var handled = this.ActualController.HandleTouchDelta(this, args);
     this.previousTouchPoints = currentTouchPoints;
     return handled;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles touch down events.
 /// </summary>
 /// <param name="e">The motion event arguments.</param>
 /// <returns><c>true</c> if the event was handled.</returns>
 private bool OnTouchDownEvent(MotionEvent e)
 {
     var args = e.ToTouchEventArgs(Scale);
     var handled = this.ActualController.HandleTouchStarted(this, args);
     this.previousTouchPoints = e.GetTouchPoints(Scale);
     return handled;
 }