getDirection returns reversed direction

if horizontal direction is negative, it should return “Left”, not
“Right”.

this resulted in direction and offsetDirection properties to have
opposite values