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
195
votes
9 answers

Why does Google +1 record my mouse movements?

This is only on pages with a Google +1 box on my website: It seems to be firing off an event on every mouse move. Anyone know what it is doing? I searched on Google (perhaps I should try Bing for once on this one!) but no one seems to have…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
65
votes
9 answers

Moveable/draggable

This is my updated and modified script, it works completely, except I would like to universalize it... observe the **** how can I make it so that I don't have to do function(e){BOX.Draggable.elemen = e.target || e.srcElement; elementDraggable(e);…
person0
  • 1,278
  • 2
  • 15
  • 20
33
votes
6 answers

How can I get the mouse coordinates relative to a parent div? Javascript

I currently have a div structured with other elements inside of it. Something similar to below;
GriffLab
  • 2,076
  • 3
  • 20
  • 21
33
votes
3 answers

When to use touchmove vs mousemove?

I build a web mobile game, it runs on browsers (PC/Mobile). Do I need to use the touchmove or not? How can I run the touchmove event like the mousemove event?
Soliman
  • 1,132
  • 3
  • 12
  • 32
29
votes
4 answers

What are the proper typescript types for addEventListener mousemove and it's event argument?

Question: Without using any, What is the proper typing for my onMouseMove function? export class Main { private dTimer: number; constructor() { this.init(); } private init() { this.mouseHandlers(); } private mouseHandlers() { …
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
23
votes
6 answers

How to set mousemove update speed?

im generating a function where it needs to set easy and fast a signature. I'm writing the signature in an canvas field. I use jQuery for it, but the refresh rate of mousemove coordinates is not fast enough. What happens is that if you write your…
Vincent
  • 257
  • 1
  • 2
  • 4
22
votes
3 answers

How to move the mouse to an arbitrary point using Protractor/Selenium

Is it possible to move the mouse to arbitrary coordinates on the screen/relative to an element in Protractor tests? I see people recommend using Robot for Java users, but of course I can't use that in JavaScript.
Andy
  • 7,885
  • 5
  • 55
  • 61
20
votes
2 answers

C++ move mouse in windows using SetCursorPos

I created a device similar to a wiimote and i want to use it as a mouse in windows (8.1). The device connects over tcp to a c++ win32 program on my windows computer and sends the position where the mouse cursor should move. I am using the…
user3394180
  • 303
  • 1
  • 2
  • 5
19
votes
5 answers

How to move a Windows Form when its FormBorderStyle property is set to None?

Using C#. I am trying to move a Form without its title bar. I found an article about it on: http://www.codeproject.com/KB/cs/csharpmovewindow.aspx It works as long as I do not set FormBorderStyle as None. Is there a way to make it work with this…
Moon
  • 22,195
  • 68
  • 188
  • 269
18
votes
6 answers

Receive mousemove events from iframe, too

I have a javascript app, whichs adds a mousemove listener to the document. Problem: When the mouse is moved over an iframe, the function is NOT called. Is there a way to pass through such events to the root document?
Van Coding
  • 24,244
  • 24
  • 88
  • 132
16
votes
2 answers

How to test mousemove drag and drop with react-testing-library and framer-motion

I am trying to test the drag and drop functionality using react-testing-libary. The drag and drop functionality comes from framer-motion and the code is in reacy. From what I understand it uses the mousedown, mousemove and mouseup events to do this.…
16
votes
2 answers

Is there any way to accelerate the mousemove event?

I wrote a little drawing script (canvas) for this website: http://scri.ch/ When you click on the document, every mousemove event basically executes the following: - Get coordinates. - context.lineTo() between this point and the previous one -…
bpierre
  • 10,957
  • 2
  • 26
  • 27
16
votes
3 answers

How to move the mouse in Selenium?

I'm trying to simulate mouse movement across a random curve line or parabola so it looks like the mouse actually moved across the page. With Selenium, I only know how to click on an element but that doesn't simulate a real user on some websites. I…
User
  • 23,729
  • 38
  • 124
  • 207
16
votes
4 answers

how to implement mousemove while mouseDown pressed js

I have to implement mouse move event only when mouse down is pressed. I need to execute "OK Moved" only when mouse down and mouse move. I used this code $(".floor").mousedown(function() { $(".floor").bind('mouseover',function(){ alert("OK…
M1M6
  • 915
  • 3
  • 17
  • 33
16
votes
1 answer

Qt MouseMoveEvent only triggers with a mouse button press

I have an odd problem here. I'm working on an application, and within one of my classes I'm monitoring my mouse events. The weird thing is, my mouse move event will only get called if any mouse button is pressed. I'm not even filtering for any…
Yattabyte
  • 1,280
  • 14
  • 28
1
2 3
63 64