Map scroll (when player walks) javascript call

Hey guys, it's my first post here and this forum has helped me with many doubts just by reading past answers but now I really didn't find what I need.

Anyone knows what is the javascript function that rolls the "camera" when player walks on map? I mean, when the player walks and it is near the maps edge, the camera stops rolling but whe he walk away from the edges, the camera focus it on center and follow it?
You mean slow camera? Galv has one
Thank you. Actually I am making a system to display pictures as animations for a game I started in MV, so I want to finish it, but since then I acquired MZ and later I will try to port it to MZ as well. Actually I made good improvements since I created this thread so I am with a tiny bug in the first camera movement. It's passable but it bugs me. Here is a link to a Youtube video showing it:

Original thread: https://forums.rpgmakerweb.com/threads/map-scroll-when-player-walks-javascript-call.171775/