Fire event on picture click

I could swear i saw a plugin a few days ago that allows an event to start when the player clicks on a picture instead of the classic options to fire an event. I did some searches but can't seem to find it now. Does the script exists or did i misread something somewhere?
Think I found it myself here: https://github.com/rafaelalmeidatk/JGSS/blob/master/Christmas-Pack/TTKC_DetectPictureClick.js
I got a error "Cannot read property '0' of undefined

@decinbr , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please start a new thread with your problem.

Original thread: https://forums.rpgmakerweb.com/threads/fire-event-on-picture-click.55938/