how to move the main camera when i drag the minimap (also camera)

how to move the main camera when i drag minimap , it looks like Legend of league’s minimap.
codes:

      this.cameras.main.setBounds(0, 0,500,500).setName("main");
      this.cameras.main.startFollow(someObject, false, 0.2, 0.2);
      this.minimap = this.cameras.add(200, 10, 50, 50) .setName("mini")
      // maybe the codes look like 
      this.minimap.input.on('drag', (e) =>{
        this.cameras.main.scrollX = e.deltaX
        this.cameras.main.scrollY = e.deltaY
      })