Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upIn Chromium, mouse move events only arrive when mouse button is down #490
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
andybalaam
Jan 22, 2016
I added a breakpoint in Chromium in this code in Main.elm (for me, line 5465):
localRuntime.addListener([position.id], node, 'mousemove', function move(e) {
localRuntime.notify(position.id, Utils.getXY(e));
});
I don't hit the breakpoint when I move the mouse, but I do when I click and drag.
andybalaam
commented
Jan 22, 2016
|
I added a breakpoint in Chromium in this code in Main.elm (for me, line 5465):
I don't hit the breakpoint when I move the mouse, but I do when I click and drag. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
andybalaam
commented
Jan 22, 2016
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
andybalaam
Feb 1, 2016
I tried this with a different version of Chromium and it worked fine so I think this is some weird Chromium-specific corner case. Closing.
andybalaam
commented
Feb 1, 2016
|
I tried this with a different version of Chromium and it worked fine so I think this is some weird Chromium-specific corner case. Closing. |
andybalaam
closed this
Feb 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
andybalaam commentedJan 22, 2016
I'm not sure whether this is a Chromium bug, or something that can be fixed or worked around in the Elm runtime.
When I launch an Elm program in Chromium I do not see mouse movement events.
In Firefox, I see mouse events whenever I move the mouse (as I would expect).
When I run the above, the mouse co-ordinates display does not update when I move the mouse over the Chromium window. When I click and drag, or move out of the window and back in, the co-ordinates do update.
If I do the same in Firefox I see the co-ordinates changing whenever I move the mouse (as I would expect).