Wrap Window_SkillList (and other menus)

Hey folks!

I'm making custom battle command menus and HUD for my project. Been a loooong time since I've done any javascript so pretty rusty!

Obstacle I have at the moment is getting menus to wrap back to the beginning when the cursor reaches the bottom. Some menus sort-of do. If you hold down "down" it reaches the bottom, then jumps back to the top when you press down again. Ideally I'd like that to be smooth, without having to repress "down". Not sure how to fix that yet.

But I can't get the Window_SkillList to wrap at all and can't figure out how.

Any help on either issue would be massively appreciated ^_^ Thank you x

Original thread: https://forums.rpgmakerweb.com/threads/wrap-window_skilllist-and-other-menus.119983/