Fix direction of snap elementOrigin

Previously, { x: 0.5, y: 0.5 } would be to the top left outside the
element when it should have been the center.