On Mon, 1 Dec 2025 16:07:56 GMT, Anass Baya <[email protected]> wrote:

> **Analysis :** 
> The issue is that on Win32, if the window is not active, we dont receive 
> mouse events because we release the capture
>  So the problem is the following:
> We start selecting text from the right to the extreme left.
> Then we switch to another window( the window lose focus ), and we release the 
> mouse
> But when we return to the window, the caret drag is still active and does not 
> stop. as the window did not recieved the mouse release event
> 
> **Proposed fix:**
> In the Caret class, we added a logic to ignore the drag if the focus was lost 
> due to window switching unless a new mouse press happens

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/28582

Reply via email to