Open TominoCZ opened 6 years ago
I bound a delegate function to the MouseClickevent handler in the global events and there is a really noticable delay between the calls. Even up to half a second.' ..so now I'm simulating the click event using MouseUpand MouseDown like so:
MouseClick
MouseUp
MouseDown
public Form1() { InitializeComponent(); var wasDown = false; _events.MouseDown += (o, e) => wasDown = true; _events.MouseUp += (o, e) => { if (wasDown) click(e); wasDown = false; }; } void click (MouseEventArgs e) { // stuff... }
I bound a delegate function to the
MouseClick
event handler in the global events and there is a really noticable delay between the calls. Even up to half a second.' ..so now I'm simulating the click event usingMouseUp
andMouseDown
like so: