Juce TextEditor changes?

Hi @reuk,

This is in relation to your commit: [2fc7d12ae] (19 May 2022)

Just to note that I’ve seen really weird behaviour in a Component I derive from the JUCE TextEditor Component class, where my Component does some specific stuff in relation to receiving mouse events.

I found that your change in the above commit leads to my Component getting (say) mouse_up called twice in response to a mouse click by the user. So where I expected (say) one mouse up event, I get two - which stuffs-up the logic of my control. For now, I’ve had to call this in my class’s constructor as a partial work-around.

juce::Desktop::getInstance().removeGlobalMouseListener (this);

I don’t know if you’ve got any ideas about how to resolve this?

Best wishes,