Mouse clicked issue with arrays

@andprocessing hi and welcome

In order to get help from others and help them to use your code format your code

To format your code use preformatted text