Only PRESSED was triggered when touch event was hooked!!!!Why???Why???

jamessmith.2438jamessmith.2438 USMember ✭✭
edited November 4 in SkiaSharp

code is run with a genymotion simulator,my event handler in C# is below:
(break point is entered only when case for pressed)

    private void SKCanvasView_Touch(object sender, SkiaSharp.Views.Forms.SKTouchEventArgs e) {
        var type = e.ActionType;
        switch (type) {
            case SkiaSharp.Views.Forms.SKTouchAction.Entered:
                break;
            case SkiaSharp.Views.Forms.SKTouchAction.Pressed:
                break;
            case SkiaSharp.Views.Forms.SKTouchAction.Moved:
                break;
            case SkiaSharp.Views.Forms.SKTouchAction.Released:
                break;
            case SkiaSharp.Views.Forms.SKTouchAction.Cancelled:
                break;
            case SkiaSharp.Views.Forms.SKTouchAction.Exited:
                break;
            default:
                break;
        }
    }
}

skiasharp 1.59.2
forms 2.4.0.38779
x.android 25.4.0.2

Best Answer

Answers

Sign In or Register to comment.