Questions tagged [ondoubleclick]
22 questions
11
votes
2 answers
Handle React onDoubleClick and single onClick for same element
When I add a single onClick event to an element as well as an onDoubleClick event to the same element, the single click is triggered on the double click as well. I'd like to seperate it out so only one event is fired for single or double. I found…

Sean
- 2,412
- 3
- 25
- 31
5
votes
3 answers
Android Studio - How to perform doubleClick in Kotlin?
A boring thing when some more advanced technologies impose their standards is to have to do with the "double click" to perform an action. But what I'm looking for is an easy way to implement it without having to rewrite the code a thousand times.
I…

DoctorWho
- 1,044
- 11
- 34
4
votes
2 answers
Prevent text selection on double click in a React component
I have a react component that displays some text inside a div. I also have a double click handler on the div. Everything works fine except the text is shown as selected when the user double clicks on it. This is to be expected, but I want to prevent…

Phil Wright
- 22,580
- 14
- 83
- 137
2
votes
3 answers
how to prepend, append and implement color switching with click and doubleclick in jQuery
So I have a task at school and have no idea how to solve it. Please please please help. HTML and CSS are given and cannot be edited at all. Everything needs to be done in JS. Here is the task:
We have a list of persons. We need to add two persons to…

markytom
- 29
- 2
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
2 answers
OnDoubleClick in react
I can't get it to respond onDoubleClick. neither with console.log. I do not understand why, since the code looks good.
I hope your help thank you very much, bye.
}
deleteUser = async(id) => {
await axios.delete('http://localhost:4000/users/' +…

Nahuel Stratico
- 11
- 3
1
vote
2 answers
onDoubleClick() don't work on phone react js app
To everyone, I have a problem in my ReactJs app with the onDoubleClick() function assigned to a component, on a desktop pc my function works correctly, but on an Android mobile phone, (iPhone works fine) with the screen in vertical the function…

Esteban Camargo
- 63
- 1
- 14
1
vote
1 answer
Double click event is not working If the content is empty
I am using double click event on a to toggle visibility of control in my MVC application.
m.Value
where m is my model.
In the above code, span content is m.Value, which can be empty.
When…

Sahi
- 1,454
- 1
- 13
- 32
1
vote
1 answer
onDblClick in react-konva not working
I'm using react-konva to render canvas. I assign onDblClick for a Group, I also assign onClick, onDragEnd to this Group. In onDragEnd handler, I have an axios POST request to server. Whenever I double click the Group, the onDragEnd event is fired.…

Phong Nhat
- 11
- 3
1
vote
3 answers
GWT - Handle both double click and single click on the same element
I've a custom widget with a onClick handler. The problem is when user double clicks on the element, a duplicate call is also triggered for the second click. Was trying to avoid it by using onDoubleClick handler, on double click the call does go into…

kumareloaded
- 3,882
- 14
- 41
- 58
1
vote
1 answer
How to detect double tap in RecyclerView item
I already have an OnClickListener when clicking on a RecyclerView item to open a new Activty. Now, I want to implement OnDoubleTap listener as well, but I'm not sure how.
Do I have to create a GestureDetector in the ViewHolder? On the other hand,…

Dani M
- 1,173
- 1
- 15
- 43
0
votes
1 answer
NET Core OnDoubleClick not triggered on Custom High DPI
It's a very weird, clueless and rare thing. I have a Class Library (component) on NET CORE 6, I change my Windows 11's Dpi to a Custom 200%, the OnDoubleClick has no response. But OnClick did trigger. I try to change to another custom Dpi 144%,…

Jonney
- 91
- 6
0
votes
1 answer
How to add two different click events at single element in react application? Using JavaScript not any other js library like jQuery
I have been stuck that how we can add different click events on a single element. for that, I am adding my scenario that what I want to achieve.
So the scenario is I want to add two events on my button 1st is onClick={} 2nd is onDoubleClick={} and…

Abidullah
- 159
- 3
- 13
0
votes
3 answers
How can I create a Double Click Link in react?
I have a Draggable image link that opens the link in a new tab. The problem is that when the image is dragged it of course ends up clicking the link, when I don't want it to. So how can I make it so that the link only activates on a double…
0
votes
2 answers
onDoubleClick is not working on react to call a function
I'm following this React tutorial here: https://ibaslogic.com/how-to-edit-todos-items-in-react/ to build a simple TO DO app.
I've also reviewed Why onDoubleClick event is not working in React.js? but there's no onclick event to worry about in my…

Katie Melosto
- 1,047
- 2
- 14
- 35