Questions tagged [ondblclick]

Use tag to refer to the ondblclick event, which occurs when the user double-clicks on an element.

The ondblclick property of the GlobalEventHandlers mixin is an EventHandler that processes dblclick events on the given element.

The dblclick event is raised when the user double clicks an element. It fires after two click events. (source)

13 questions
5
votes
3 answers

How to prevent 'click' event to fire before 'dblclick' event

I have to handle two events which are 'click' and 'dblclick' but the click event always fires before dblclick event and don't let dblclick event to execute. How can I make the event to execute correctly 'click' and…
Bre
  • 79
  • 2
  • 7
1
vote
1 answer

Autocorrection with eslint's solid/event-handlers results in typescript errors

I am using solid/event-handlers rule of eslint-plugin-solid with eslint. After automatically repairing the error that occurred in onDblClick, it became onDoubleClick and an error occurred in typescript. Why does eslint-plugin-solid auto-repair…
ymk
  • 13
  • 4
1
vote
1 answer

jqGrid - Is it possible to get object properties ondblClickRow?

I have the following jqGrid: I make an AJAX call to display elements on that grid. I wanted to show more items on the grid (same tab) and made another AJAX call. So, I created 2 arrays. The first array stores the result of Ajax Call 1, the second…
stepbysteptomathpro
  • 455
  • 1
  • 7
  • 16
1
vote
1 answer

why dblclick does not work in my Vue js app

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
0
votes
1 answer

jquery - dblclick on child also triggers dblclick event on parent

I have this odd problem where i have an UL with some LI elements in it.. I have bound a dblclick() event to both the UL and the LI, and when I dblclick the LI element, both the LI event and the UL event is triggered.. is there a way to avoid…
Oldenborg
  • 906
  • 3
  • 13
  • 26
0
votes
2 answers

How to put a function for click and another for double click on the same element?

I'm trying to implement two different functionalities to an element, one after a single click and another one after two clicks. I'm using a setTimeout to detect when a single click is performed, but this way both functions end up being performed,…
Emanoel José
  • 125
  • 1
  • 6
0
votes
1 answer

How to handle double click (dblclick) event on row with data in kendo-grid in Angular2?

I'm using Angular2 & TS withkendo-grid and it allows to get the data of the clicked row, but only for singleClick => (cellClick)="onCellClick($event.dataItem)" , not doubleClick => (dblclick)="onDblClick(<>) How to an event…
Arekadiusz
  • 419
  • 4
  • 11
0
votes
0 answers

dblclick event doesn't work on Safari and Chrome (d3.js library)

I'm using the d3.js library to create group elements ("g") that can be double clicked to do something. In Firefox everything works perfectly fine but in Safari or Chrome it doesn't fire. Anything I need to add in the index.html to make it…
CenanK
  • 1
  • 2
0
votes
0 answers

Receive error when double click data in Listbox

I am newbies in VBA. Recently I have created a "Search Form". The search data have 21 columns which will display in the "Search List Box". Unfortunately, it only can show until 9 columns and will return an error for the 10 and above data. Your…
0
votes
2 answers

How to add 2 addeventlisteners to work together (e.g.: run event on dblclick when mouse pointer is at left side of screen)

New to JavaScript, trying to figure out how to combine addEventListener events. For example, I want to trigger something when I double-click the side of the screen, within 30 or 40 pixels. I assume I need to combine these…
0
votes
5 answers

js differ click and double click

I am trying to differentiate click and dblclick events by javascript. I tried stopPropagation in dblclick however did not work. hence I coded my own function using setTimeout tries to avoid calling the other when calling one. /* dblclick differ…
Weilory
  • 2,621
  • 19
  • 35
0
votes
3 answers

Affecting whole div block with ondblclick function

I have recently started learning DOM and I have seen some examples of it, however, I'm trying to make a function (getting id) which would trigger after being double clicked. This is the CSS, HTML and JavaScript codes I'm using. function getID() { …
-1
votes
3 answers

dblclick() method in jQuery

I am writing a jQuery dblclick() method. I am trying to show a hidden menu when double clicked on a button. I am creating a button named "Menu" in my html file with href attribute. The href attribute in HTML file is this:
razorblade
  • 17
  • 2