Basic rectangle translation and snapping.