Bug 1047660 - Making the software home button and the edge gestures play nice in landscape

Can you just use the same math and multiply by the direction ? (1 or -1)