Currently, I am in the process of developing a component for signing using HTML 5 and canvas within Angular 8. My goal is for this component to be able to detect both touch events and mouse events.
In my pursuit of creating this component, I have been drawing inspiration from a webpage that closely aligns with what I am aiming to achieve:
Despite my efforts, I have encountered challenges in getting the component to function properly. It seems that the issue could possibly be related to differences in the configuration of the tsconfig.json
file between the tutorial and mine.
The tutorial's tsconfig.json
configuration looks like this:
While mine appears as follows:
At this juncture, I find myself at a loss on how to proceed. I would greatly appreciate any insights or guidance on where I may have gone wrong, or if there exists a simpler method to develop a signature component that can recognize touch events.
EDIT: I have shared a stackblitz link containing the code:
https://stackblitz.com/edit/angular-szrn6z
EDIT: The code functions correctly on Stackblitz but not within my project. Could this discrepancy be attributed to the configuration of the tsconfig.json file?