When annotating with an Apple Pencil or other stylus, touching the screen with a finger also triggers annotation drawing - making it impossible to scroll without accidentally marking up the document.
The Pointer Events API exposes pointerType per event, which could be a good starting point for distinguishing the input that initiated a gesture.
When annotating with an Apple Pencil or other stylus, touching the screen with a finger also triggers annotation drawing - making it impossible to scroll without accidentally marking up the document.
The Pointer Events API exposes
pointerTypeper event, which could be a good starting point for distinguishing the input that initiated a gesture.