Questions tagged [onmousemove]

The "onmousemove" event is a event that is triggered when the user moves the mouse pointer on an element.

Definition:

The onmousemove property is a JavaScript property which triggers the mousemove event when the user moves the mouse over an object.

Example Usage:

document.getElementById( '#example' ).onmousemove = function ()
{
    console.log( 'The onmousemove event has fired.' );
};

Important Links:

199 questions
2
votes
1 answer

Flash AS3/Mouse position between startDrag and stopDrag

I have a 'drag item' and some 'drop target' so I want to highlight drop target while 'drag item' is dragging so need to track mouse position or listen the mouse move event. I try subscribe ENTER_FRAME event and do hit test but wonder there's any…
2
votes
2 answers

How to make a resizable div from every angle?

I'm making a dragible and resizable div. Dragible works normally. I want the div to be able to change the width and height with the move mouse after clicking on the "resizer" which is located at all corners. I figured out how to do the Right Bottom…
maja
  • 177
  • 1
  • 13
2
votes
0 answers

Trigger onClick handler, when it's overlapped with element that has onMouseMove, onMouseEnter and onMouseLeave handlers in React

So, I have an svg graph rendered in React. This SVG graph has a rect element that overlaps the whole svg (width 100% and height 100%). The code looks like this:
idjuradj
  • 1,355
  • 6
  • 19
  • 31
2
votes
1 answer

Detecting the last time the user clicked/moved/typed/anything

I have a Windows vb.net project that does an occasional "auto refresh" based on a 20 minute timer. I want to avoid any type of auto-refresh... if the user has manually had any interaction with the program (mouse move, click, keystroke, anything)…
Bonnie
  • 161
  • 1
  • 3
  • 6
2
votes
2 answers

JavaScript: onMouseOver Event Not Working Properly With Other Events

I have a HTML webpage that contains a 15x15 table and I also have a small square div that follows the mouse when you press and hold the left mouse button on the div. I have assigned an onmouseover event to the 15x15 table so that when the mouse…
AlexPriceAP
  • 1,987
  • 6
  • 26
  • 41
2
votes
1 answer

OnMouseMove on IDC_PICTURE coordinates

I'm developing an MFC application that displays real-time LiDAR point clouds, on Visual Studio 2017 in a windows environment. Now all the display functionalities are working just fine, and I've implemented them as follows: Added a static picture…
IsmNaj
  • 107
  • 1
  • 7
2
votes
1 answer

How frequently is D3 drag event triggered?

I have a very general low level question about dragging. I am specifically interested in learning what exactly determines when a drag event is triggered in D3.js v4. For example, if I move a dragged object very slowly, a drag event will fire each…
2
votes
2 answers

Change text on cursor position

I am trying to change a text based on the cursor position. It is working but the change sensitivity is way to fast. So I was wondering if there is a way to adjust this, that the change isn't that fast. var text = ['Orange', 'Banana', 'Strawberry',…
Dennis
  • 75
  • 9
2
votes
0 answers

Getting pixel colour from bitmap returning wrong coordinate

I am very new to multi device programming in XE10 Firemonkey and wonder if someone can help me with a problem reading the pixel colour from a bitmap. What I want to do is sample a colour from a bitmap in a Timage control (like the way an eyedropper…
Peter
  • 61
  • 1
  • 3
2
votes
3 answers

Anchoring a Windows Forms Tooltip to the mouse

I want to show a tooltip when hovering over a button and as long as the mouse is over the button the tooltip should follow the mouse. What is the correct way to achieve that? When I add a MouseMove event that calls tooltip.Show(...) with the updated…
gix
2
votes
1 answer

mouse move is faster than redraw wpf

I'm defining shapes which inherit from class Shape and implement the 'Geometry' property. Here's an example: public class Landmark : Shape { public override bool IsInBounds(Point currentLocation) { return (((currentLocation.X >=…
Idanis
  • 1,918
  • 6
  • 38
  • 69
2
votes
1 answer

TeeChart: Fast way to show series values at current mouse position

I want to show the values of all series at the current mouse position if the cursor is on the chart. Exactly as it is displayed in this figure: To accomplish this behavior I used an TAnnotationTool and the OnMouseMove event. Additionally I use a…
FlorianSchunke
  • 571
  • 5
  • 15
2
votes
4 answers

Snap to grid mouse locking up

I am working on an application which draws a simple dot grid. I would like the mouse to snap between the points on the grid, eventually to draw lines on the grid. I have a method which takes in the current mouse location (X,Y) and calculates the…
user26901
2
votes
1 answer

move rotated SVG element

So,I have a SVG rect that I can move to the mouse position,with mouseonmove. It works fine,but when I come to rotate it,the movement is good,but It have a strange offset based on the rotated angle.I guess something is wrong at the cos/sin code,but I…
2
votes
1 answer

How to make canvas -element to fill and refill depending on the mouse position

I have a script that follows Y-position of mouse and then fills the width of a rectangle as the mouse moves down. In other words: The lower the mouse - the wider area of the canvas is colored, and vice versa. Fiddle here Now the problem is…
Shamppi
  • 447
  • 4
  • 16
1 2
3
13 14