Camera Panning Up, Down, Left and Right

This is a top down shooter. I’ve been working on panning my character’s camera with the mouse dragged to the edge of the screen. This is what I came up with. I managed to do it, but the transition between axis seems extremely abrupt. I wanted to give it some smooth transitioning. I tried putting FInterpTo node but I don’t think I know how it works.
How do you go about this?

Guys, Does anyone of you have any idea how to do this, I’m really stuck right now?

Hey Guys, this is how it looks right now. It snaps abruptly. I want smooth transition. Does any of you have ideas?

137591-camerapanningsnapsabruptly2.gif

You could probably re-purpose part of this template: UE4 Template - RTS Style Camera Movement With Edge Scrolling

There’s also an older post that explains his process, if you’d rather make it yourself.

Thank you, I’ll give it a try.