Bug during the inspection of the subject

[Help to solve this problem during the inspection of the subject.][1] I used the tutorial on creating interaction and inspection of the subject and found the following problem. Please help me

what is the problem/bug?

I need to limit the movement and inspection of the mouse during the approach of the photo