MouseInputSource::enableUnboundedMouseMovement behaviour

Hi there,

I'm using MouseInputSource::enableUnboundedMouseMovement to make a slider that the user can infinitely drag to change its value.  I'm keeping keepCursorVisibleUntilOffscreen as false so the mouse is invisible. 

It all works as desired except that the mouse position, when it reappears, is different from when it disappered.  It seems while invisible the mouse can still move within the slider component bounds (but not beyond its extents).  Is there a nice way of having it always reappear in the original position no matter what movement occurs?




You could just set the mouse position to whatever you want in the mouseUp callback?