1

I have two movable elements in my page & I like to log something in the console when I double click on the first movable object. I call the dblclick event but it's not triggered.I like to know how I can solve this problem. My code is here

FFXX
  • 95
  • 8
  • There's no `dblclick` anywhere in the code you linked. Please update the question to show what you tried in setting up this event handler. – tony19 Feb 23 '21 at 19:44
  • @tony19 thanks for letting me know. I updated it – FFXX Feb 23 '21 at 20:56
  • Since you only want to listen for event on first movable object, a simpler solution would be to wrap your first movable object in a div and add the dblclick event to the div. [link](https://codesandbox.io/s/wonderful-resonance-5gwve?file=/src/App.vue) – Raja Feb 24 '21 at 09:48
  • @Raja I checked your solution but it does not work. I don't see anything in the console – FFXX Feb 25 '21 at 15:21

1 Answers1

2

Sandbox Link with a working example GIF.

Working Example

Raja
  • 417
  • 3
  • 9