mousemove Questions
3
Solved
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...
Socialminded asked 24/2, 2015 at 20:26
2
Solved
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...
3
Solved
I try to get mouse position relative to an element using mousemove.
It works fine, but when the mouse hover a child element, the coordinates are relative to this child. I want the mouse position re...
Carolynecarolynn asked 22/9, 2012 at 19:0
3
Solved
I have a same origin iframe. Mouse events in the iframe are triggered in the document like so:
// this won't work
$('iframe').contents().find('body').on('mousedown mouseup mousemove', function(e)...
Homo asked 25/5, 2013 at 18:25
3
I want to click on a specific location of my canvas element, so I wrote the following Protractor code:
var canvas = element(by.id("canvas"));
var clickCanvas = function(toRight, toBottom) {
br...
Motherland asked 14/2, 2015 at 21:39
9
Solved
I'm trying to figure out a clean way to aggregate mousemove events so that I ensure my code gets called, but only once every 250-300 milliseconds.
I've thought about using something like the follo...
Rotter asked 10/1, 2011 at 15:35
4
Solved
I do not want any unnecessary loops occurring for mousemove event. So I became interested, in terms of performance/best practice what would be the best way to run mousemove only while mousedo...
Hub asked 27/12, 2015 at 19:19
2
We are facing a problem with jQuery event propagation performance connected to mousemove:
We have a screen filling canvas and need to track if a user drags the mouse on it, so we have added a mous...
Anyhow asked 9/10, 2013 at 16:49
1
Solved
Today I had the following thing going on: I had an existing mousemove event and added touchmove later on, like this:
$(window).on "mousemove touchmove", (e) ->
pos_x = e.pageX
pos_y = e.pageY...
Crisis asked 27/5, 2015 at 9:6
0
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 cal...
Tervalent asked 23/2, 2015 at 1:52
2
Solved
After having started a Drag & Drop operation by DragDrop.DoDragDrop(...) no more MouseMove Events are fired. I even tried
AddHandler(Window.MouseMoveEvent, new MouseEventHandler(myControl_Mous...
Jewelljewelle asked 19/4, 2010 at 2:26
2
Solved
I'm trying to have a WPF canvas with rounded rectangles on that I can drag round using the mouse. However once I try and capture the mouse on the canvas I don't get the move events any more.
This ...
1
Solved
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 b...
Grant asked 10/8, 2014 at 0:42
3
Solved
http://jsfiddle.net/MrkY9/
My computer (and so far, no other computer among my coworkers) is exhibiting an issue in Chrome, IE, and Safari (but not in Firefox). Simple mousemove code, such as the ...
Hugohugon asked 23/7, 2013 at 18:44
2
Solved
I have followed some wonderful code to have an image follow the mouse cursor within a div container at http://jsfiddle.net/fhmkf/. The problem is, this method only works for div containers fixed in...
2
Solved
I have a (deeply) nested structure of <div>s. With Javascript, I'd like to keep track of which element the mouse is currently over (i.e., 'has focus'), where more deeply nested elements have ...
Como asked 8/5, 2014 at 12:25
1
Was wondering if there were an equivalent for mousemove for mobile devices, such as touchmove or touchdrag or something.
I have an image within a container which can be panned on hover using mouse...
2
I'm using this function to move the cursor.
[DllImport("user32.dll")]
static extern bool SetCursorPos(int X, int Y);
When I use a hotkey to trigger it, the cursor will move to the correct coord...
2
Solved
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?...
Mazur asked 22/10, 2013 at 10:43
1
Solved
1
Solved
I have a custom control that updates two NumericUpDowns with the current mouse coordinates by handling the MouseMove event.
However I have experienced a strange case where the MouseMove event is f...
Frisse asked 7/10, 2013 at 10:28
1
I'm looking for a workaround for .mousemove() method on Chrome. It's a known issue.
Chrome keeps firing mousemove repeatedly even if the mouse is still.
I can't use .hover() method because the ar...
Rector asked 16/1, 2013 at 17:0
3
I am aware that the mousefocus option is only supposed to work in gVim. But I was wondering, if it's possible to have the console Vim switch to different windows in response to mouse clicks, would ...
2
hey want to drag this bezier curve when mouse button is pressed and moved..
I did this:
void MainWindow::mouseMoveEvent(QMouseEvent *e)
{
qDebug()<<"in mouse move - outside if";
if((e->b...
Presently asked 15/9, 2013 at 21:11
2
Solved
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 s...
© 2022 - 2025 — McMap. All rights reserved.