Thanks Luke, how did you find out about this script?
I wrote it myself. Got annoyed with Firefox’s pen support (it’s a bit glitchy), and opened Google Translate in Chrome, and noticed that their handwriting recognition worked correctly with the pen input, so looked through their page to see any differences between them and skritter.
Google Translate had event handlers for the touch start, end and move events (as well as mouse events), whereas skritter was only handling mouse events. I wrote that script based off jQuery’s touchPunch - which essentially listens to touch events, and then triggers fake mouse events in response to them.
it is probably worth bugging it to chrome / ms. This was a very useful feature up until now.
Looking through https://github.com/Microsoft/vscode/issues/36492, it looks like Microsoft has purposely introduced the pen as touch change (as opposed to pen as mouse as it was previously), and doesn’t really want to change it back. Could bug chrome to re-add the direct-manipulation-stylus flag, but I think it’s probably best to try to add the appropriate touch handlers within skritter.