     # Set an array of anchor names.
     @_anchors = ['left', 'right', 'top', 'bottom']
     # oriDomi starts oriented with the left anchor.
-    @lastAnchor = @_anchors[0]
+    @lastOp = anchor: @_anchors[0]
     # Create object literals to store panels and stages.
     @panels = {}
     @stages = {}

    # Disable tweening to enable instant 1 to 1 movement.
    @_setTweening false
    # Derive the axis to fold on.
    @_touchAxis = if @lastAnchor is 'left' or @lastAnchor is 'right' then 'x' else 'y'
    # Set a reference to the last folded angle to accurately derive deltas.
    @["_#{ @_touchAxis }Last"] = @lastAngle


    # Calculate final delta based on starting angle, anchor, and what side of zero
    # the last operation was on.
    if @lastOp.negative
      if @lastOp.anchor is 'right' or @lastOp.anchor is 'bottom'
        delta = @["_#{ @_touchAxis }Last"] - distance
      else
        delta = @["_#{ @_touchAxis }Last"] + distance
      delta = 0 if delta > 0
    else
      if @lastOp.anchor is 'right' or @lastOp.anchor is 'bottom'
        delta = @["_#{ @_touchAxis }Last"] + distance
      else
        delta = @["_#{ @_touchAxis }Last"] - distance
