beginDragAutoRepeat & enableUnboundedMouseMovement generates bad mouse positions

Hello,

When the mouse goes off-screen, the mouse positions become crazy.
Here is a simple test:

void MainComponent::mouseDown(MouseEvent const& event)
{
    event.source.enableUnboundedMouseMovement(true, true);
    beginDragAutoRepeat(100);
}

void MainComponent::mouseDrag(MouseEvent const& event)
{
    std::cout << event.x << " " << event.getDistanceFromDragStartX() << "\n";
}

Here is an example of the output

145 0
145 0
146 0
148 2
148 2
150 5
153 8
157 11
160 15
164 19
169 24
... mouse off-screen
254484 254338
508665 508520
1017031 1016886
2033762 2033616
2082265216 2082265088
-130437376 -130437632

I can find another way of doing this but is it normal? Is there any reason to avoid using beginDragAutoRepeat & enableUnboundedMouseMovement?

MacOS 10.14.3 (I didn’t try on another machine)
JUCE 5.4.3 - 49c631e916a9f0c747348e6fcd092dc6283e0fe9

I tested with Juce 5.4.5 and the problem remains