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

OnMouseMoved Android?

I am learning how to make android apps, and I can't figure out how to implement a kind of OnMouseMoved event in android. I've tried using an OnTouchListener, but It doesn't update when I touch, hold and move. It only updates when I tap a different…
Spencer H
  • 450
  • 1
  • 6
  • 17
0
votes
1 answer

flash website content box hiding the menu

My website is: http://harringtonplanningdesign.com When I move the cursor on the flash box the menu is disappearing. How can I keep the menu from hiding when the cursor is on the flash content box? That means I do not want to hide the menu when the…
SKB
  • 179
  • 2
  • 8
0
votes
1 answer

JavaScript - mousemove event not triggered on iPad/iPhone

I worked for a while on E-learning project, where I had to script an HTML file that's loaded on a global framework. I used to use: $('#myobject').on('mousedown' ... 'mousemove' ... 'mouseup' , function(){}) And it worked well everywhere (Chrome, IE,…
Sachou
  • 11
  • 1
  • 5
0
votes
2 answers

Appended element does not move smoothly on mousemove?

I want to make a loading tip when you click on a button. Below is my attempt, this.mouse_loader_click = function(){ /* CONFIG */ xOffset = 10; yOffset = 20; $(".mouse-loader").click(function(e){ /* append…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
3 answers

How to track cursor position efficiently in Java?

The effect I've been trying to create is that the mouse cursor icon changes whenever the mouse enters a certain zone on a JPanel, and switches to default whenever it leaves the zone. I'm using the MouseMoved feature in the MouseMotionListener class,…
Hans
  • 545
  • 2
  • 10
  • 20
0
votes
2 answers

Transformations in Java2D API

I am attempting to test for a collision with a Rectangle2D.Float and a Point2D.Float. I have a 2D world that contains a camera (which transforms the graphics2D canvas based off the camera's AffineTransform). I then have a list of objects X that…
Matthew
  • 3,886
  • 7
  • 47
  • 84
0
votes
1 answer

Hide div at mouse inactiv set to one div

I found a script and want to mod it a bit. Im trying to animate a div #menuwrap when the user is inactive or active over an certain div #gallery. Now it still animates even outside the #gallery after its animated the first time. Any help is much…
0
votes
2 answers

How to get the starting time of a mousemove event in Javascript/jQuery?

Is there any attribute associated with the starting time I can get from the 'event' parameter in the callback function of a mousemove event?
chaonextdoor
  • 5,019
  • 15
  • 44
  • 61
-1
votes
1 answer

ONMOUSEMOVE wont TRIGGER after selecting BUTTON (VB.NET)

Please help. I have a form and a class. Form - frmTestTool Class - MainClass What I am trying to do is to print text everytime the mouse cursor is moved. So the scenario is, I have a software where I embedded the custom command. So I open the custom…
Rjay
  • 3
  • 2
-1
votes
2 answers

How to stop onmouseup function inside mouse move event listener

I have the following code. As can be seen, I have an event listener that triggers when the mouse button is pressed down on a div ("myDiv"). If the mouse is moved the div moves, and then when the mouse button is released, a messaged is logged to the…
Normajean
  • 1,075
  • 3
  • 11
  • 28
-1
votes
1 answer

How detect if i'm moving mouse to left, right, top or bottom inside TImage component on mousemove event?

I want know how detect to what side i'm moving mouse: to left, right, top, bottom inside TImage component on mousemove event? Thank you.
user9672569
-1
votes
1 answer

Is it possible to position a text depending on the position of the mouse with React JS?

I have a simple div, with a function to obtain the coordinates of the mouse inside this div.
This function saves in the state, the coordinates of the div constructor() { super(); this.state = { …
NelbeDG
  • 425
  • 1
  • 7
  • 19
-1
votes
1 answer

How do I use the onmousemove event?

How can I make it so that the following code will be executed only when the move moves using the onmousemove event. settimeout(function(){ confirm("Hello"); }, 3000); I'm looking for a pure JavaScript solution only.
user9743275
-1
votes
2 answers

Moving a div within a div on mouse move

Can someone help me with a issue I have. So I have two divs div1 needs to be the height and width of the browser screen and over flow hidden. Within that div I have another div div2 which is twice the width and hight of the first div. I then need…
CIB
  • 535
  • 1
  • 12
  • 35
-1
votes
1 answer

Continuous ontouchmove?

How do I make this work on my Android mobile continuously, similarly to the way it works on my PC? Currently it doesn't: