Questions tagged [onmousedown]

onmousedown is the event where a mouse button is first clicked (as opposed to when the button is subsequently released, which is onmouseup). This is not specific to any language, so please also include a language tag if applicable.

Most questions with this tag relate to the HTML DOM event, and you can find further information here: https://en.wikipedia.org/wiki/DOM_events#Events

This event is common across many platforms however so you may need to seek additional references.

208 questions
0
votes
1 answer

HTML5 Canvas onmousedown Event in Android 4.0 ICS odd behaviour

I've got a basic HTML drawing application using the jQuery lib Sketch.js (which uses < canvas>, works perfectly fine on IE, Opera, Chrome, Firefox on all desktop browsers. Works fine on Opera Mobile, Chrome Mobile, Firefox Mobile, Dolphin HD,…
Mattisdada
  • 916
  • 2
  • 12
  • 19
0
votes
1 answer

How to get a global location from MouseDown?

I'm working on a WinForms app and need to record the location of MouseDown and MouseUp events. My problem is that the events happen on different controls so their coordinate systems don't match (all I need is the amount of drag). I tried adding in…
BCS
  • 75,627
  • 68
  • 187
  • 294
-1
votes
1 answer

Tracking clicks on a specific button

I am new in unity. I have 4 buttons in my scene and each button has the same script. In the script, I check the mouse click on the button and change its color. When you click on one of the buttons, each button changes color. It looks logical, but…
Operator
  • 27
  • 5
-1
votes
1 answer

How to check if object is clicked? (unity 2d)

I used method below to check if button(object) is clicked. The problem is that I have a Confiner which is streched over the entire level and as a result method determine this Confiner but not the object that I need. So the question is can I somehow…
xogeh
  • 23
  • 5
-1
votes
2 answers

simulated call onMouseDown in console

There is a div element on the page, by clicking on it a menu with a choice of the displayed number of elements is created. Menu: How to call this action through the console (onMouseDown React)? Code:
-1
votes
1 answer

How set the property of WPF DataGrid (mvvm) in "MouseDown" event based on "sender"?

I'm having some trouble to set one property (MouseDown event) value based on it's sender. I have "MyPhotoA" and "MyPhotoB" binded to an observableCollection. Both trigger the same event "MyOnClick" Here is the xaml: ... stuff
Freddy
  • 75
  • 7
-1
votes
1 answer

Angular: how to trigger event on mousedown outside of app?

I know that you can trigger events with window:onmousedown or document:onmousedown, but I want to trigger an event when the user clicks anywhere on the screen, even outside of the app. For instance, if I'm running the app in a web browser, I want to…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
-1
votes
1 answer

Unity cant find the other script NullReferenceException: Object reference not set to an instance of an object

So my TowerNode script cant find the Shop script and active or disable it for some reason it just cant find it so it give me a "NullReferenceException: Object reference not set to an instance of an object TowerNode.OnMouseDown () (at…
-1
votes
1 answer

HTML: on hyperlink click nav container blinks

whats up. I am trying to code fixed navigation that stays at the top of the page all the time and I am dealing with the problem that my fixed navigation blinks every time when a href got clicked. Any ideas how to fix that? HTML:
-1
votes
2 answers

How do I make a button have a down state instead of an over state in WPF?

I've just put a perfectly normal default button in a WPF window, expecting it to have some normal button states. But it's only reacting to mouse over and not mouse down. I only need it to have two states so I can do without the over state. How do I…
Kyle Delaney
  • 11,616
  • 6
  • 39
  • 66
-1
votes
1 answer

Right Click Issue About Jquery

When I Right clicked in my Table Column. i get 3-5 alert screen. I Think there is any loop.. My Algorithms is When i clicked right get alert screen . if i press "OK" My Column is going to delete if i press "NO" My Column is not going to delete .…
Zarma Mokana
  • 71
  • 2
  • 10
-2
votes
2 answers

D3.JS - Rotate a pie chart on mouse down event

I am looking for an example for to rotate a pie chart on mouse down event. On mouse down, I need to rotate the pie chart either clock wise or anti clock wise direction. If there is any example how to do this in D3.js, that will help me a lot. I…
-2
votes
3 answers

Need Javascript onmousedown to trigger multiple images to display none

I have a website that uses a PHP foreach loop to gather products from a database. Each of those products displays the product picture and then has a jQuery plugin that allows the user to swipe or click and drag the element to the left to display…
Mitch
  • 1,374
  • 5
  • 21
  • 39
1 2 3
13
14