javascript - can I attach event listeners to canvas events? -


i'd know if it's possible if there canvas tag in html i'd attach event listener each time it's programmed draw callback function increment value or something

ah found it! needed mutationobserver , going through addednodes list returns search canvas node fyi in future here resource: https://developer.mozilla.org/en-us/docs/web/api/mutationobserver


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -