{
var p = this.GetDipFromPoint(e.GetTouchPoint(this).Position);
this.hittedGripper = this.View.HitGripperFromPoint(p);
+ this.CaptureTouch(e.TouchDevice);
}
/// <inheritdoc/>
protected override void OnTouchUp(TouchEventArgs e)
{
+ this.ReleaseTouchCapture(e.TouchDevice);
if(this.hittedGripper != null || this.touchScrolled)
{
this.hittedGripper = null;
{
int deltay = (int)Math.Abs(Math.Ceiling(translation.Y));
if (translation.Y < 0)
- this._Controller.Scroll(ScrollDirection.Down, deltay, false, false);
+ this._Controller.ScrollByPixel(ScrollDirection.Down, deltay, false, false);
else
- this._Controller.Scroll(ScrollDirection.Up, deltay, false, false);
- this.View.IsFocused = false;
- this.Document.SelectGrippers.BottomLeft.Enabled = false;
- this.Document.SelectGrippers.BottomRight.Enabled = false;
+ this._Controller.ScrollByPixel(ScrollDirection.Up, deltay, false, false);
this.touchScrolled = true;
this.Refresh();
return;
this._Controller.Scroll(ScrollDirection.Left, deltax, false, false);
else
this._Controller.Scroll(ScrollDirection.Right, deltax, false, false);
- this.Document.SelectGrippers.BottomLeft.Enabled = false;
- this.Document.SelectGrippers.BottomRight.Enabled = false;
this.touchScrolled = true;
this.Refresh();
}