Fix flashing, reset transform on mouseup