JavaScript Pointer event listener, shape gestures - How? [Graphic Example Included] pointer event listener

Setup

I want to create a webpage where, when the user's cursor is in a certain region of the screen, and he "draws" an imaginary circle in that region, javascript detects that gesture and carries out a function. For a square, a different function would be carried out.

I have never seen this done, but I believe that with javascript and HTML5 canvas, it should be completely possible.

Question:

How can I do this in a way that will allow me to detect a user's imperfect gesture shape input and have my scripts differentiate between the different gestures/shapes?

Example

enter image description here

Note:

This is not only a touch-screen function. It must work with a normal cursor as well, with the user's mouse.

Great Uses:

Websites can use this to allow their users to use gesture shortcuts, with both mouse and hand, to visit specific pages, or trigger functions that the user uses often within a site. For example, a user could draw a question mark on the center of any stack overflow page to be sent straight to the new question page. Users could even be allowed to make their own gestures for viewing favorite questions, going to the home page or submitting an answer for the current question page.

Answer:1

I want to check if the value of the radio is some value and if it is, it needs to echo a text line. I use this code for the radio buttons: <li> <label for="recommend_field"><?php ...

I want to check if the value of the radio is some value and if it is, it needs to echo a text line. I use this code for the radio buttons: <li> <label for="recommend_field"><?php ...

  1. radio button answer
  2. java radio button answer
  3. html radio button correct answer

I'm trying to add a class of "active" to the current slide in carouFredSel, and I can't get it to work. The closest I could get it to work was to add it on the first slide, using trigger("...

I'm trying to add a class of "active" to the current slide in carouFredSel, and I can't get it to work. The closest I could get it to work was to add it on the first slide, using trigger("...

I am using the following script to change the HTML5 required attribute of my input elements. I am wonder whether there is a way to modify this script to make it also work in Safari browsers, since ...

I am using the following script to change the HTML5 required attribute of my input elements. I am wonder whether there is a way to modify this script to make it also work in Safari browsers, since ...

  1. javascript html5 required attribute
  2. javascript html5 required
  3. html5 required javascript submit

This seems like it should work but doesn't. I'm not sure where the problem is - either I'm doing it wrong, or it's possible I have a syntax error. I just doesn't do anything. I'm trying to get the ...

This seems like it should work but doesn't. I'm not sure where the problem is - either I'm doing it wrong, or it's possible I have a syntax error. I just doesn't do anything. I'm trying to get the ...

  1. change image when hover
  2. change image when clicked
  3. change image when button is clicked android
  4. change image when button is clicked
  5. change image when scroll
  6. change image when clicked css
  7. change image when clicked android
  8. change image when hover javascript
  9. change image when mouse over
  10. change image when click jquery
  11. change image when mouse hover css
  12. change image when hover jquery
  13. change image when mouseover javascript
  14. image change when
  15. change image on button click javascript
  16. change image on hover codepen
  17. change image on linkedin post
  18. change image on mouseover
  19. change image on scroll jquery
  20. change image on hover css w3schools