In the example provided only horizontal movement is shown.
The behavior is controlled by multMoveVerticalMode property. By default, it's set to "Disabled" which disables vertical moving.
You can use "All" to enable vertical moving:
dp.multiMoveVerticalMode = "All";