Questions tagged [mousemove]

For issues relating to setting up, subscribing to, or handling mousemove events.

Mousemove is an event that fires when the user moves the mouse owithin the element you registered the event on.

961 questions
5
votes
1 answer

Mousemove on pointer-events none div

How do i trigger the mousemove event on a pointer-events none div, I can't edit the html of the page only the javascript (banking)

title

element 1

element 2

the script currently only…
ekclone
  • 1,030
  • 2
  • 17
  • 39
5
votes
1 answer

Interactive background mask with mousemove (jQuery, CSS)

I'm trying to create a page that has this effect: . I had it right, until I tried to implement a background to it. I'm used to photoshop (with layers and masks), but unfortunately html does not have masks. Here is what I have. The…
Derk Jan Speelman
  • 11,291
  • 4
  • 29
  • 45
5
votes
5 answers

Mousemove event not firing on page element or document

I am trying to use the js slider slick, but the default 'draggable' option does not work when I include the slider code on my site. More specifically, I cannot capture any mousemove events on the slide div, or on the document in my webpage (Chrome).…
haydenwagner
  • 546
  • 2
  • 6
  • 15
5
votes
0 answers

Preventing touch from generating mouseOver and mouseMove events in Android browser

I am building a page that needs to work with touch and mouse interaction on PC, Mac, and mobile browsers. In the event handler methods for touchStart, touchMove, touchEnd, and touchCancel I am calling event.preventDefault to prevent mobile browsers…
Markus A.
  • 12,349
  • 8
  • 52
  • 116
5
votes
1 answer

MouseMove sensibility

I use MouseMove event to move objects(say labels). simple principle(schematic): OnMouseMove(e MouseEventArgs) if e.Button == Left deltaX = e.X - lastX foreach label in labels label.Location.X += deltaX lastX =…
serhio
  • 28,010
  • 62
  • 221
  • 374
5
votes
2 answers

How to trigger a mouse move event from jQuery

I'm trying to manually trigger a mousemove event with jQuery. Demo in this fiddle http://jsfiddle.net/qJJQW/ From other similar posts on Stack Overflow it seems that this should work. Why isn't it?
hofnarwillie
  • 3,563
  • 10
  • 49
  • 73
5
votes
2 answers

jquery mousemove how to stop

I have this fiddle http://jsfiddle.net/JqBZb/193/ where I want my object to move only when the red square is pressed, but I cannot remove the mousemove action when the user releases the mouse. It still moves after that. HTML:
Mike
  • 3,017
  • 1
  • 34
  • 47
5
votes
0 answers

wpf HwndHost MouseMove event before previous element MouseLeave event

We have a Wpf application with an Hwndhost element we use for rendering 3d content via DirectX. We expose a "Panel" interface to clients which contains a MouseEnter and MouseLeave event. For the Hwndhost "panel" we simulate a MouseEnter event when…
Hank
  • 193
  • 1
  • 10
5
votes
2 answers

How to draw and move shapes using mouse in C#

I'm new to programming in C# and wanted to ask for a little bit of help. I'm currently trying to move a color-filled rectangle that I draw on a Windows Application form with my left mouse button, and I'm trying to drag-and-drop it to another…
User_T
  • 247
  • 3
  • 8
  • 18
5
votes
1 answer

Respond to mouse movement when key is being pressed

Edit: Looks like the problem is for touchpad not mouse. Goal: To be able to respond to mouse movements even when key(s) is being pressed. I want to modify PointerLockControls of Three.js so that: if user moves mouse when pressing W, then the camera…
coolscitist
  • 3,317
  • 8
  • 42
  • 59
5
votes
1 answer

Get an element with mousemove

Is it possible to get the current element using mousemove ? I'd like to get the element where the mouse is to do specifics things if the mouse isn't on an element x or y. For exemple : $(document).mousemove(function(e) { …
thomas-hiron
  • 928
  • 4
  • 21
  • 40
5
votes
1 answer

pass mouseover event through dragging element

I've got a custom draggable element (the drag starts on click and ends on click), which could be dropped on some areas. On mouseover area decides whether it accepts current draggable or not, and changes its color respectively. Everything worked like…
shiftoff
  • 143
  • 6
5
votes
3 answers

MouseMove issue on canvas

I'm attempting to get a square shape to follow my mouse around on the canvas using "mousemove". function start(){ var canvastmp = document.getElementById("myCanvas") var canvas = canvastmp.getContext("2d"); …
trevnewt
  • 131
  • 1
  • 3
  • 9
4
votes
1 answer

selenium accessing mouseMove js function

I am using Selenium to give rating to some video. The page source for the rating is: Rating
Aspirant
  • 2,238
  • 9
  • 31
  • 43
4
votes
4 answers

How to achieve smooth drawing with C# (like Paint .NET)?

How Paint .NET can draw so fast using C#? Sample: The ellipse perimeter is drawn while the mouse is being dragged without any visible delay. At a simple windows form application in C# If you use the MouseMove event of a Picturebox and draw an…
Pedro77
  • 5,176
  • 7
  • 61
  • 91