onChartEvent: only listen to mouseclick if mouse isn't dragged

 

Hello,

in my expert I listen for mouseclicks on the chart with 

if(id == CHARTEVENT_CLICK)

Now what I want is that I only get inside the if, if I really get a mouseclick. Now I also get inside the if when dragging the mouse to scroll for example. How can I avoid that?

 

You don't. A drag is a mouse click followed by a mouse move.

In my GUI, I check for mouse move and if my objects are changing position.

Reason: