Scroll screen, drag function only in y axis?

I want to create a manual drag function? how would I do it?

Take a look at the drag camera with mouse example:
editor.gdevelop-app.com/?projec … with-mouse

Only need to delete the logic that move the camera on the X axis and it will scroll up and down on the Y axis only.