One of my boys was doing similar behaviors w one eye, so I took him to my herb vet, Dr. Greek.
(He is excellent, n I'm so lucky to just be 10 min away

)
He flushed his eyes really good and gave me this ointment, that I with extremely clean hands, had to smear and swirl into and onto chameleons eye 2 times a day. Making sure it got into the actual eye, (they are really good at zipping eye turrets closed as protection of their most important bodypart..
It works wonders. It feels like a lubricant, so they don't mind it at all( actually I think they like a good eye rub, lol)
Chameleons do take along time to show improvements sometimes, just continue following vets directions.
I have used it since on any chameleon that seems bothered w eyes, and it works everytime.
The faster any health issue arise, the faster they will improve.
DISCLAIMER: I'm not a vet and don't recommend using prescribed meds without consulting a vet!
IT IS CRUCIAL TO WASH HANDS BETWEEN EACH EYE SO NOTHING IS TRANSFERED.