/// <inheritdoc/>
protected override void OnPointerPressed(PointerRoutedEventArgs e)
{
+ System.Diagnostics.Debug.WriteLine("pointer pressed");
this.CapturePointer(e.Pointer);
this.gestureRecongnizer.ProcessDownEvent(e.GetCurrentPoint(this));
e.Handled = true;
/// <inheritdoc/>
protected override void OnPointerMoved(PointerRoutedEventArgs e)
{
+ System.Diagnostics.Debug.WriteLine("pointer moved");
this.gestureRecongnizer.ProcessMoveEvents(e.GetIntermediatePoints(this));
e.Handled = true;
/// <inheritdoc/>
protected override void OnPointerReleased(PointerRoutedEventArgs e)
{
+ System.Diagnostics.Debug.WriteLine("pointer released");
this.gestureRecongnizer.ProcessUpEvent(e.GetCurrentPoint(this));
e.Handled = true;
}
/// <inheritdoc/>
protected override void OnPointerCanceled(PointerRoutedEventArgs e)
{
+ System.Diagnostics.Debug.WriteLine("pointer canceled");
this.gestureRecongnizer.CompleteGesture();
e.Handled = true;
}
/// <inheritdoc/>
protected override void OnPointerWheelChanged(PointerRoutedEventArgs e)
{
+ System.Diagnostics.Debug.WriteLine("pointer wheelchanged");
bool shift = (e.KeyModifiers & Windows.System.VirtualKeyModifiers.Shift) ==
Windows.System.VirtualKeyModifiers.Shift;
bool ctrl = (e.KeyModifiers & Windows.System.VirtualKeyModifiers.Control) ==
void timer_Tick(object sender, object e)
{
- System.Diagnostics.Debug.WriteLine("interval {0}", DateTime.Now.Millisecond);
if (this.View.LayoutLines.HilightAll() || this.View.LayoutLines.GenerateFolding() || this.Document.IsRequestRedraw)
{
this.Refresh(this.View.PageBound);