Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Modifying Bluetooth GATT Configurator Report Map Characteristics in SiLabs - Simplicity studio v5

As part of my application,I am working with SiLabs and following example of this text with my deice EFR32BG22 and tool Simplicity Studio V5. I need to add a digitizer descriptor to the Bluetooth GATT ...
Himani Pathak's user avatar
1 vote
0 answers
17 views

Why is my useOnClickOutside not working? Why can't the eventListener find e.target?

I am creating a useOnClickOutside hook. It's a hook that detects clicks outside of a registered ref. The interface is as follows. const ref = useOnClickOutside( () => { setShow(true) } ); return &...
Seyeon Jeong's user avatar
1 vote
2 answers
42 views

Missing pointerup event in child element after setting pointerCapture on parent

I want to implement a drag effect on an element, so I used setPointerCapture in its pointerdown event handler like this: ele.addEventListener('pointerdown', (e)=>{ e.currentTarget.onpointermove = ...
FaniX's user avatar
  • 355
0 votes
0 answers
14 views

How to create many buttons in GLFW window without additional library

I'm using GLFW library for my GUI app. I need to create some buttons for users to click. From what I learned, GLFW do not have a built in function to add button. So I need to implement it myself. My ...
user28325222's user avatar
0 votes
0 answers
26 views

How to get the Pinch or Zoom amount from a MouseWheelEvent in Java

I am trying to code something where I can pan around and zoom a graphic, but I can't figure out how to get zoom quantity. I am working in a swing UI and I have successfully gotten scrolling to work ...
David T.'s user avatar
0 votes
0 answers
50 views

Mouse Listener in python

I have an error and I will share with you on the below. The code I wrote is so simple. I didnt understand why I get this error. Code: import timeimport threading from pynput.mouse import Listener def ...
Arda Karakaş's user avatar
1 vote
0 answers
32 views

Creating a 'Draw Line' Button with Mouse Clicks in PyQt5

I'm using PyQt5 to build a GUI program similar to Microsoft Paint, but specifically for drawing shapes (components) and lines (wires) on an adjustable circuit board. So far, I've created the circuit ...
kauselis3000's user avatar
0 votes
1 answer
37 views

How to simulate click properly on "Show more workflows ..." buton on GitHub?

I'm trying to use Tampermonkey user script on Firefox to click "Show more workflows..." in GitHub repositories like this one. But somehow using this code // ==UserScript== // @name ...
piotrekkr's user avatar
  • 3,183
1 vote
1 answer
63 views

p-inputNumber button - The input value is null when using the down arrow

I'm using the p-inputNumber button in order to allow the user to select a filter value for a table column. Unfortunately if I use the down arrow and I select the value 0 the Mouse event it is not ...
Silviu Safta's user avatar
0 votes
0 answers
39 views

Vue 3 vitest useMouse composable test not working

I've reused the mouse tracker composable here: https://vuejs.org/guide/reusability/composables, adding a twist by binding the event to an element in order to track the mouse position relative to it. ...
Tinydev's user avatar
0 votes
1 answer
47 views

How does one handle mouseEntered: and mouseExited: events when nswindow style is fullSizeContentView?

I have a macOS app with a view that occupies the entire window, with NSWindowStyleMaskFullSizeContentView set within the window's styleMask. I want to show the titlebar and window buttons when the ...
steveo1951's user avatar
0 votes
0 answers
34 views

mat-autocomplete optionSelected does not get triggered by mouse event

I am using mat-autocomplete and input form control inside a custom cell editor for ag grid in angular. mat-autocomplete only reacts to keyboard event but not mouse event. Does anyone know how to fix ...
Chelsea Ma's user avatar
0 votes
0 answers
51 views

Some Subscribers Not Called When Firing Event

I'm trying to replicate a famous card game in unity using C#, just as a challenge to myself. Today I was making a Sacrificeable script that is added to almost every card in the game. There is another ...
Jeronimo Kemerer's user avatar
1 vote
1 answer
50 views

How to prevent text selection on double-click in JavaScript?

I'm working with a double-click event listener in JavaScript to trigger an action when a user double-clicks on certain text elements. However, I also have another event listener that responds to text ...
Elyes H's user avatar
  • 11
1 vote
1 answer
68 views

Vite + Typescript can't call onClick function, not defined

I am working on weather app in Vite + Typescript, no framework, just plain TS. I want to have delete function for each weather list item. When I click on delete button clickedID gets passed down to ...
Darius Molotokas's user avatar
0 votes
0 answers
65 views

How to detect mouse button press down and release in flutter flame?

I want to be able to detect if a mouse button is currently pressed down or not. All the sources suggested using a combination of onTapDown/onDragStart and onTadUp/onDragEnd functions, but onTapUp does ...
Nikoloz Miruashvili's user avatar
0 votes
1 answer
80 views

How to get mouse click position as row, column in gridded tkinter frame?

This is my first SO question - I hope it makes sense. I have a scrollable, gridded tkinter frame which is populated by a table. The table has 10 columns of fixed width. The number of rows is ...
user23339879's user avatar
0 votes
1 answer
46 views

How can I slow down drag behavior with D3/JavaScript?

I am designing a visualization which begins with the user drawing points on the screen as shown here: https://jsfiddle.net/jtr13/j2yrknf3/25/ The relevant part of the code (inspired by this answer) is:...
jtr13's user avatar
  • 1,277
0 votes
0 answers
40 views

Trying to show the Annotation data on hover/mouse move CornerStoneJs

Trying to show the Annotation point's data on hover/mouse move using CornerstoneJs Library. Github Link To Library I am displaying probeTool Annotations when the image loads. You can see image#1 (...
Adil Zahid's user avatar
0 votes
1 answer
55 views

Tkinter Button Not Behaving as Expected

So I have been working on a project mainly using the tkinter module, and when I started trying to use Buttons I have seen that I literally can not just click on them. I have to both click, hold, and ...
Alvin Lee's user avatar
0 votes
0 answers
49 views

Detect if the mouse curor is outside QGraphicsView [duplicate]

I have mouseMoveEvent in QGraphicsView, and it changes the stylesheet of a QStatusBar everytime the mouse is in the QGraphicsView. Now I need to restore that QStatusBar color to black whenever it goes ...
tetektoza's user avatar
  • 178
0 votes
1 answer
25 views

Draggable line series gives a TypeError: Cannot read properties of undefined (reading 'chart')

I'm currently using when I try to click and drag the point of the line it gives Draggable line series gives a TypeError: Cannot read properties of undefined (reading 'chart') My settings in the ...
fcnealvillangca's user avatar
0 votes
0 answers
60 views

How to check if no activity on keyboard and mouse in C++ [duplicate]

I'm trying to make an app for myself and others in windows (linux and mac in future) that tracks how much you have worked or did some other activity for a period of time, for example: studied, ...
ioslmlaut's user avatar
0 votes
1 answer
44 views

How to get an event when user resize WPF DataGrid column by mouse

How to get an event for column resize invoked by user interaction (mouse left button + mouse move). I tried SizeChanged event, but it is triggered also when new items are added to the DataGrid (with ...
Igor's user avatar
  • 316
0 votes
3 answers
59 views

Can I use an event listener with two events?

I am doing a "pixel art" web page, and I don't want the "pencil" to draw when I am not pressing the button on the mouse, I try to do this but either I can make the "pencil&...
Alexandra Fernández's user avatar
1 vote
3 answers
65 views

Find the id of the div using onMouseOver event object

I wrote the below code to capture the id for the div, when the user hovers over the div. <div className="part-3" id="graph-1" onMouseEnter={handleHover}> <h3 className=&...
ForeverLearner's user avatar
-1 votes
1 answer
93 views

How to make Popup movable in c# WPF more than once?

I have created a usercontrol which uses <UserControl ....... MouseMove="UserControl_MouseMove" MouseLeftButtonUp="UserControl_MouseLeftButtonUp&...
user avatar
3 votes
1 answer
178 views

Setting fillStyle works inconsistently for bodies in Matter.JS

I'm working with Matter.JS for an interactive header graphic on a website. I have some basic letter paths in SVG, which get loaded, converted to shapes and bodies and placed in the world. They get ...
oelna's user avatar
  • 2,426
0 votes
0 answers
22 views

Relationship among event.clientX,Y, event.pageX,Y, window.scrollX,Y to subpixel accuracy

I'd like to know the x,y location of my MouseEvents, in page coordinates and in viewport (aka client) coordinates, as accurately as possible (definitely subpixel accuracy). See here for definitions of ...
Don Hatch's user avatar
  • 5,334
0 votes
1 answer
71 views

Widget with WA_TransparentForMouseEvents attribute in QSplitter. How to make it?

I have QMainWindow class with QScrollArea with content as central widget. And I created a main_layout with my scroll area as parent. Thus I have ability to access to background layout (self....
Oleksandr Shyndin's user avatar
0 votes
1 answer
27 views

How can I solve flicking problem on hover by event handler or raw CSS?

I am facing a flickering problem on img Hover. I want to show all img as grid from 6 to 3 on img hover . For this , I use event handler & state. But , because of event function using, it is ...
Zannatul Ferdousi Hema's user avatar
0 votes
2 answers
78 views

Zoom only using mouse wheel

I'd like to allow zooming on a canvas (excalidraw API) using only the mouse wheel like on google map , without pressing the ctrl key. Here are two things that I tried : useEffect(() => { const ...
Antonin Cuyala's user avatar
0 votes
1 answer
126 views

Autoclicker in java

I am trying to make it so after I press the start button, it does the clicks when left mouse button is being held down, but right now its not clicking at all when I hold left mouse button. package GUI;...
user25629679's user avatar
0 votes
0 answers
74 views

Automate Mouse Clicks on Mac

For years I have used the following code on a Mac to automate mouse clicks in my bash scripts. Recently (sometime since I upgraded to Sonoma?) it stopped working. Here is the code: // Compile ...
TheWellington's user avatar
0 votes
0 answers
13 views

How can I use mouse movement to scroll in Windows?

I have this command in linux that does this. xinput --set-prop $id 'libinput Scroll Method Enabled' 0, 0, 1 xinput --set-prop $id 'libinput Button Scrolling Button' 2 And there is Karabiner elements ...
Shaffaf Ahmed's user avatar
1 vote
0 answers
118 views

Control MouseWheel speed with OnMouseWheel event

I am trying to detect mouseWheel event in my Dialog Box and control the speed of the mousewheel. Below is the code snippet for normal mouseWheel movement: static BOOL HandleMouseWheel(CWnd* pWnd, int ...
Monika's user avatar
  • 11
3 votes
1 answer
54 views

How to detect 'onMouseMoved' on the entire scene?

I'm trying to detect if mouse is moving over the entire scene or not to close the app after 15min of inactivity. In the example I have an Anchorpane occupying the entire scene with an OnMouseMoved ...
froggy's user avatar
  • 612
0 votes
1 answer
36 views

detecting mouse events behind a transparent iframe

I'm building a Chrome Extension that when active, appends an iframe to the body of the page and is set as position fixed to take up the whole window dimensions (0, 0 100vw, 100vh). The iframe is ...
André Alçada Padez's user avatar
0 votes
0 answers
103 views

Mouse look/Mouse delta calculation problems

So, I am currently trying to create a mouse look system for a game I am making. Here is my current code: class InputManager { public: bool GetKey(KeyCode key, KeyState state) { int ...
SoulStealer173's user avatar
4 votes
1 answer
49 views

JavaFX problem with drawing a polygon in the right place

I have the following problem: Drawing a figure (in this case a triangle) works correctly. However, the triangle should be drawn where I clicked, and it starts drawing from the upper left corner of the ...
snake_case_typing's user avatar
0 votes
0 answers
27 views

Coordinates of my mouse are not matching up with my coordinates of my sprite

It was my project to create a duck hunt game in masm615 8086 assembly and in that I have implemented a crosshair that moves with cursor using the INT 33 and I have added a check where on left click of ...
Hassan Ali Shoro's user avatar
0 votes
0 answers
85 views

MOUSEINPUT reset the mouse cursor on Windows

How to reset the mouse cursor to its default state (no button is clicked) without changing the position? According to the MOUSEINPUT API, there is no "reset" function or "...
dizcza's user avatar
  • 698
0 votes
0 answers
29 views

Get mouse events for a D3 element that is behind another? Picking priority?

I'm making a D3 visualization where I want to draw a semitransparent box over a bunch of other clickable targets. When the transparent thing is the only thing under the cursor, and the user clicks, I ...
interfect's user avatar
  • 2,857
2 votes
2 answers
54 views

An overlay timer that starts on LMB click/hold, stop & reset on release

Was able to start the time count by clicking LMB but could not find a way to stop and reset it. import PySimpleGUI as sg import time from pynput import mouse sg.theme('DefaultNoMoreNagging') layout =...
Elysion's user avatar
  • 21
0 votes
1 answer
44 views

Avoiding endless event listeners that are added when a state changes in React

I have a state-variable items that's just a collection (object) of items with an ID and a ref (which points to an HTMLDivElement), and a state-variable attachments which is another collection, but has ...
Jonathan's user avatar
0 votes
2 answers
74 views

How to convert mouse position to canvas coordinate using object-fit: contain

Using object-fit: contain allow to resize a canvas to fit inside a container. This snippet is drawing a circle using mouse event position : canvas.width=1920; canvas.height=1200; const ctx=canvas....
mpromonet's user avatar
  • 11.9k
0 votes
1 answer
73 views

Stop chrome devtools logging mouse events temporarily

I'm trying to log a specific mouse event, which is being sent from an onMouseMove event. I'm absolutely positive that I've seen some sort of keyboard shortcut that you can use inside of chrome ...
Andrew's user avatar
  • 624
1 vote
1 answer
56 views

Unexpected behavior with javascript mouse events

What I wanted: a div "dragItem" should be moved horizontally. If the mouse cursor is on top of a div with the class "tag", then the position of "dragItem" will be changed....
CodeCannibal's user avatar
0 votes
0 answers
68 views

Detect mouse move event when over an iframe in chrome extension

I am working on a chrome extension that would inject a script on any page and get the mouse position whenever the mouse move, now everything is working fine and getting the positions whenever the ...
Joel Smith's user avatar
0 votes
1 answer
23 views

DragEvent properties coming from nested iFrame

I need to get the clientY of the browser viewport. However, whenever I drag over an iFrame, event.clientY returns the Yposition of the iFrame viewport. How can I get only the clientY of the browser ...
Chay's user avatar
  • 1

1
2 3 4 5
126