question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong call in EventsBehavior.cs ?

See original GitHub issue

I stumbled upon a pretty subtle but from my point of view just wrong behaviour. Inside of EventsBehavior.cs is a check if a mouse movement occurred. After that in line 56 there is a invokation of OnMouseClick where I would rather expect OnMouseUp because it is the event handler of the MouseUp event. This “wrong” event call leads to some weird behaviour in our application. I was also able to verify that this is the problem by unregistering the EventsBehavior from the diagram.

Is this just wrong or is there more to this call?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
zHaytamcommented, Jun 29, 2022

Indeed, now that you’ve explained the issue, I see it clearly. MouseUp shouldn’t fire a MouseClick unless MouseDown happened as well, otherwise something like you described (clicking outside, moving then releasing) would trigger a click when it shouldn’t!

I will take a look at you rexample.

0reactions
zHaytamcommented, Jul 16, 2022

It will be fixed in the new major version. Would you like a quick fix for it with the current version? I can write you a modified EventsBehavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual events in C#: something went wrong
The problem, apparently, is that if you use a virtual event, the basic and child classes will have individual (not virtual) delegate-fields that ......
Read more >
Is there any case in which the Form's Activated event is not ...
Here is my answer, I noticed that only Form has Activated event, other controls don't have and once the TopLevel of Form is...
Read more >
Fast input appear in wrong columns
Hello, we got customer complaints, because the data input with our implementation of a GridControl would be to slow.
Read more >
Regularly monitors network security devices and systems ...
Regularly monitors network security devices and systems to identify false positives and perform tuning to collect the right cyber security-related events.
Read more >
Concurrent algorithmic debugging
A diagnosis algorithm for incorrect FCP programs is proposed. ... the functions it calls are correct, then the code of the considered function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found