When I open a popup menu, if the menu opens under the mouse, the the mouseExit that the component gets has a mouse position that is complete nonsense.
Example debug output:
move: 87.1445, 131.46
move: 87.4355, 131.46
move: 87.4355, 131.751
move: 87.4355, 132.042
exit: 87.4355, 132.333
exit: 1067.44, 484.333
I’m not moving the mouse. The first mouseExit looks ok, then the next is garbage. Doesn’t happen every time, but happens if the first item in the menu gets selected when it opens.
Code:
#pragma once
#include <JuceHeader.h>
//==============================================================================
/*
This component lives inside our window, and this is where you should put all
your controls and content.
*/
class MainComponent : public juce::Component
{
public:
//==============================================================================
MainComponent();
~MainComponent() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
This file has been truncated. show original
attila
March 29, 2022, 9:48am
2
Thank you for reporting. There’s a fix out on develop
committed 09:27PM - 16 Mar 22 UTC
1 Like