mousePressed always true

Dear all
I developed a Processing sketch that handle mouse and its buttons.
It works but, after a while, the mousePressed attribute becomes always true.
Did you have any similar problem ?
How did you fix it ?
Thank you very much for your help and ooperation

I have never heard of this problem before. Are you trying to use the boolean value of mousepressed inside the mousePressed()` function? Are you assigning a value to mousepressed somewhere? Those are just a couple of thinks that might be the issue. Without seeing some code that demonstrates the problem, we’re at a loss.

Can you please post your code in the form of a MCVE?

More info here: