How to set long click?

Hello, I decided to try to implement the idea, the point is that with a short press on the button drops a menu and when you long hold and drops a popup window, a kind of 3D Touch, searching, found almost finished the code ,but I can't configure it so it worked, not so long ago started to learn JS, not whisking well. If anyone can help that would when you long press beginning to fall out popup window will be very grateful! P. s what does this mean, if not difficult send a very simple example in CodePen, so it's easier and faster to grasp the essence of the work, thanks in advance !

https://codepen.io/Swift_u/pen/zQQqmr
March 23rd 20 at 19:25
1 answer
March 23rd 20 at 19:27

To watch the console.
learn.javascript.ru/mouse-clicks
There is more (toaster link does not pass) - vicente.Nikola commented on March 23rd 20 at 19:30
On phones (or rather touch screen) is not working, he needs more just for them, so that you can link to these events:
https://developer.mozilla.org/ru/docs/Web/API/Touc...

Let modify :)) - louie_Schup commented on March 23rd 20 at 19:33

Find more questions by tags HTMLJavaScriptCSS