MV MOG_PictureGallery mouse issue

I am using a plugin on a MOG_PictureGallery and it throws an error when I try to scroll the list of pictures up with the mouse. It also causes a conflict with other plugins. Is it a mouse issue? Is there a way to fix this? Can you help me decipher what the problem is?
1743878335043.png
I never tried the mouse wheel, but if that causes the issue when using,
you need to either:

1) avoid using it
2) add a small code to the plugin to render the wheel useless
3) add a function to scroll and behave like arrow key left/right.
or up and down, depending how it works there.

you can insert this into the plugin of it or as separate plugin and place it
below it to disable the mouse wheel I think.

JavaScript:
alias_TouchInputWeel = TouchInput._onWheel;
    TouchInput._onWheel = function(event) {
        if (SceneManager._scene instanceof Scene_Picture_Gallery) return;
        alias_TouchInputWeel.call(this, event)
    }

so you wont get that error (hopefully).

ShadowDragon, it worked! You are a genius ))​

Original thread: https://forums.rpgmakerweb.com/threads/mog_picturegallery-mouse-issue.176766/