mouseevent Questions

4

Solved

I'm attempting to download multiple images at once using javascript in a chrome extension. I'd like to do this by firing clicks on each of the images (each wrapped in an href tag with a download at...
Bosco asked 7/11, 2013 at 7:20

2

I'm working on a Minesweeper game using JavaFX: My GridPane is made of ImageViews, and I'm trying to find a way to figure out the column and row indexes of the image that was clicked on the GridPa...
Fleam asked 3/10, 2021 at 22:37

2

I'm writing unit testing and e2e testing for a popover component in React. I should check if the popup is hidden when I click outside the component. I'm using Jest + Enzyme for unit testing and Cyp...
Nowhither asked 28/10, 2019 at 15:12

5

I found this, Controlling mouse with Python, question really helpful in creating a script to move the mouse and click the mouse using Python. Is it possible to create a mouse scroll event also? Als...
Jeavons asked 3/3, 2012 at 4:16

9

Solved

I want to have custom colors according to the mouse events (mouse enter, exit, pressed, etc). So to accomplish this, I wrote the code below. It is fine for everything, except in the case of the mou...
Osbourn asked 31/1, 2013 at 13:44

15

Solved

Is it possible to get the mouse position with JavaScript after page loads without any mouse movement event (without moving the mouse)?
Tiger asked 8/4, 2010 at 15:17

1

Problem Summary: setTimeout's are not clearing on mobile devices when using React's useEffect hook. They are, however, clearing on desktop. Problem Reproduction: https://codepen.io/amliving/pen/Qz...
Angelineangelique asked 6/1, 2019 at 8:46

7

Solved

I'm creating a custom dropdown box, and I want to register when the mouse is clicked outside the dropdown box, in order to hide it. Is it possible to detect a click outside a control? or should I m...
Mishear asked 18/4, 2011 at 10:4

7

Solved

I have a game that I am working on in a C# console application, purely as practice before going on to better methods. As opposed to using something such as a Windows Forms App, which has button fun...
Panacea asked 22/12, 2009 at 6:21

5

Solved

var direction = "" var mousemovemethod = function (e) { var oldx = 0; if (e.movementX < oldx) { direction = "left" } else if (e.movementX > oldx) { direction = "right" } oldx = e.pageX...
Faction asked 18/6, 2014 at 20:26

2

Solved

I am happily using QTestLib to write tests for my Qt5 widgets based UI. There has seemed to be no shortage of features and convenience functionality until now, when I tried to find a way to simulat...
Crossly asked 23/6, 2018 at 0:36

5

Solved

I have a list of elements, when hovering one of these, I'd like to change my state. <ListElement onMouseOver={() => this.setState({data})}>Data</ListElement> Unfortunately, if I ...
Orthopedics asked 22/5, 2018 at 11:37

1

Solved

I am trying to log the event on mousemove on window in the console using React with TypeScript. After some research and looking at similar questions I thought I could use MouseEvent as the type for...
Codeclination asked 22/5, 2021 at 19:18

14

How can you achieve either a hover event or active event in ReactJS when you do inline styling? I've found that the onMouseEnter, onMouseLeave approach is buggy, so hoping there is another way to d...
Lukash asked 1/5, 2015 at 3:26

3

Solved

It is possible to get the current cursor type without predefined cursor style, like when the mouse pass over text, link.. Something like that : document.addEventListener('mouseover', (e) => { c...
Beatrisbeatrisa asked 20/3, 2021 at 14:50

6

Solved

I would like have three mouse actions over a control: left, right and BOTH. I've got the left and right and am currently using the middle button for the third, but am curious how I could use the ...
Genip asked 25/7, 2009 at 19:53

4

Solved

Suppose I have 2 links in my page and I want a hidden div to appear at the position the mouse is located (mouse x,y) at on the page when either of links is clicked. Also, I'd like to pass in a valu...
Bushing asked 12/2, 2013 at 5:16

4

Solved

I've built a webapp, and for a little bit of polish, I wanted to add mousedown and mouseup handlers to swap out images (in this case, to make a button look like it's being pressed). my code is som...
Benign asked 21/6, 2012 at 18:21

17

Solved

I have a div that has background:transparent, along with border. Underneath this div, I have more elements. Currently, I'm able to click the underlying elements when I click outside of the overlay...
Bar asked 9/9, 2010 at 20:42

3

Issue: I have a problem where in the whole application where click event is used. The app will be used on both mobile and web. I am using Angular 6. Every time you click on a button or link on th...
Isosteric asked 4/9, 2018 at 17:29

3

I have some sibling Rectangle elements with a radius property so they appear as circles. Each has a child Item that has a child MouseArea, the purpose of the Item being to implement a "round mouse ...
Rather asked 18/12, 2018 at 4:0

6

Is there any way to measure the number of milliseconds between mouse press and release?
Carmoncarmona asked 1/9, 2009 at 6:22

2

Solved

I have a very simple C# console application that displays some text and loops waiting for input until the escape key is pressed or the timeout period is served. using System; using System.Collecti...
Flavorful asked 19/2, 2014 at 15:5

2

Solved

I have written the following JavaScript code. I am using it to detect when the mouse is moving and when it has stopped. MouseStopped() function is a loop of hundreds of items that will tell me wher...
Fontaine asked 15/7, 2013 at 4:33

2

Solved

I add an AR camera my unity project. I use vuforia sdk for AR functions. I want to handle mouse/finger click on screen and get pixel position on screen image. I write below code. To check pixel val...
Unintelligent asked 24/4, 2015 at 7:41

© 2022 - 2024 — McMap. All rights reserved.