excubo-ag / Blazor.Canvas

Home Page:https://excubo-ag.github.io/Blazor.Canvas/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Touch not Support on Whiteboard

schorges opened this issue · comments

Is there something planned for mobile / touch support.

I want to paint on the whiteboard with pen in a blazor app,
At the moment i'm injecting canvas with java like this:
https://zipso.net/a-simple-touchscreen-sketchpad-using-javascript-and-html5/

Hi @schorges,

This project is exclusively about the canvas API. That means you can draw on a canvas however you please, or interact with it any way you want to. What this project doesn't do is provide any methods that handle touch/clicks. That's essentially up to you. As you can see on our demo page, a whiteboard is certainly feasible. The example uses mouse events, but they can very easily be replaced/amended by the touch events.

BR
Stefan