Working on a game, I have a map and a viewport following a character, which moves on the map.
I made a working prototype here: https://codesandbox.io/s/condescending-