Drag on a single axis

Have a look at this.