mouseevent

Chrome mousedown and mouseup events no longer working, other browsers are fine

故事扮演 提交于 2019-12-01 14:51:19
问题 As of today (or yesterday, didn't notice it then), mousedown and mouseup events are no longer working. I am on Chrome Version 55.0.2883.95 (64-bit). Safari and FireFox are working fine (I am on a mac computer). Here is the code: document.getElementById("floorplan-backdrop-rect").addEventListener('mousedown', function(ev) { o.clickDown(ev); }, false); document.getElementById("floorplan-backdrop-rect").addEventListener('mouseup', function(ev) { o.clickUp(ev); }, false); Were there any API

Forward event to all components JAVA

我怕爱的太早我们不能终老 提交于 2019-12-01 14:19:30
i dont how to solve this problem. I am developing a graphical editor, where arc(line) drawing is possible. I manually set the size of arc component to 1000x1000, so i dont have to change it when this arc will be dragged & dropped. Then i paint into this component the arc of the desired dimensions. Every arc components have mouse listener installed. The problem is, that only the most upper arc component get the mouse message. Also i have a mouse click listener installed on the JPane itself, but the mouse click listener on the most upper component simply gets all the events...It is kinda hard to

Javafx - Determine position of cursor on right click relative to gridpane

人盡茶涼 提交于 2019-12-01 13:04:45
问题 I have a 40x40 gridpane, displaying a map. Currently, i have the following methods listening for a right click: //detect right click + display menu, select if you want to place item 1 or item 2 final ContextMenu cm = new ContextMenu(); cm.addEventFilter(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent event) { if (event.getButton() == MouseButton.SECONDARY) event.consume(); } }); cm.setOnAction(new EventHandler<ActionEvent>() { @Override

Excel VBA click a cell in a table controlled by javascript

 ̄綄美尐妖づ 提交于 2019-12-01 12:29:43
问题 I am trying to create a web query for excel but I ran into a bit of a snag. I figured out how to log into the web page and click a link to go to the right portalID. However I am having trouble getting to specific reports. To get to specific reports, I need to click their link in a table but it appears to use javascript. The HTML for this table is below. There are about 10 cells in this table but to keep the code light I only included the first 2 cells. As you can see, each cell has its own

Mouse event wont update camera rotation in winforms

南笙酒味 提交于 2019-12-01 12:22:50
My app has a custom panel used to display the XNA screen within a WinForm. I've currently displayed a test model with no problem and now working on camera movement. My camera is a Free Camera (not bound to look at any specific target), but I've been having trouble getting the mouse to update the yaw and pitch of the camera on its own axis. I thought maybe something was wrong with my update method, but that wasn't the case, because the camera updates moving forward and backwards using KeyboardState . But I have no idea as to why the MouseState isn't working. FreeCamera.cs using XNAButtonState =

Moving the mouse according to the given coordinates

旧城冷巷雨未停 提交于 2019-12-01 11:58:48
问题 what I want is, after recording the mouse movement and saving the coordinates/ indexes/ position, I will have to load the mouse coordinates and make the mouse move according to the loaded coordinates i don't have code to show you because am stuck at this point ' private void button3_Click_1(object sender, EventArgs e) { StreamWriter writer; SaveFileDialog saveFileDialog1 = new SaveFileDialog(); string[] cvsArray = new string[10000]; saveFileDialog1.Filter = "All files (*.All)|*.All|All files

Mouse event wont update camera rotation in winforms

不打扰是莪最后的温柔 提交于 2019-12-01 11:27:35
问题 My app has a custom panel used to display the XNA screen within a WinForm. I've currently displayed a test model with no problem and now working on camera movement. My camera is a Free Camera (not bound to look at any specific target), but I've been having trouble getting the mouse to update the yaw and pitch of the camera on its own axis. I thought maybe something was wrong with my update method, but that wasn't the case, because the camera updates moving forward and backwards using

Python Tkinter: Canvas scrolling with MouseWheel

北慕城南 提交于 2019-12-01 11:21:56
I have created a tree inside a Canvas, and I have also allowed MouseWheel to scroll up and down. However, how do I prevent scrolling if tree content has not exceed canvas size? (Tree content can possibly exceed canvas size by expanding) Please run the following code: from Tkinter import Tk, Frame, BOTH, Canvas from xml.dom.minidom import parseString from idlelib.TreeWidget import TreeItem, TreeNode class DomTreeItem(TreeItem): def __init__(self, node): self.node = node def GetText(self): node = self.node if node.nodeType == node.ELEMENT_NODE: return node.nodeName elif node.nodeType == node

Not catching all mouse events with wxWidgets

懵懂的女人 提交于 2019-12-01 11:03:23
Hi I am am trying to catch mouse movements for a MouseOver function in an app created with Code::Blocks using the wxSmith plugin. I have stumbled upon a puzzling problem. EVT_MOUSEWHEEL calling the function in the EventTable works well, but all other macros have no result at all. And the mousewheel is not really want I want (I just used it to test...) This is for Windows. Here is a the basic problem code (mostly generated by the fantastic wxSmith plugin) MouseMain.h #include <wx/frame.h> #include <wx/statusbr.h> //*) class MouseFrame: public wxFrame { public: MouseFrame(wxWindow* parent

eventFilter on a QWidget with PyQt4

瘦欲@ 提交于 2019-12-01 09:51:05
I have a QMainWindow which contains a DrawingPointsWidget . This widget draws red points randomly. I display the mouse coordinates in the QMainWindow's status bar by installing an event filter for the MouseHovering event using self.installEventFilter(self) and by implementing the eventFilter() method . It works. However I want to get the mouse coordinates on this red-points widget, and not on the QMainWindow. So I want the status bar to display [0, 0] when the mouse is at the top-left corner of the points widget, and not of the QMainWindow. How do I do that? I tried self.installEventFilter