The current InkCanvas implementation is very hacky, in order to capture intermediate strokes.
With the InkCanvas implementation, strokes are not registered until the pen is released. This means that we can't capture the current "intermediate" stroke that is being drawn, which means no nice tracings. A workaround was built that intercepted the pen movement event to add control points to a temporary stroke - but this isn't very performant
Another API (RealTimeStylus) exists which may provide better integration for our use case.
The current InkCanvas implementation is very hacky, in order to capture intermediate strokes.
With the InkCanvas implementation, strokes are not registered until the pen is released. This means that we can't capture the current "intermediate" stroke that is being drawn, which means no nice tracings. A workaround was built that intercepted the pen movement event to add control points to a temporary stroke - but this isn't very performant
Another API (
RealTimeStylus
) exists which may provide better integration for our use case.