We have two balls, one situated over the other, each in their own layers.

We need to be able to drag the top ball no more than 100 pixels to the right along a straight horizontal line with no vertical travel possible.

The second ball will not be draggable.

A solid line is connected between the two balls as the top ball is dragged to the right.

Any help would be so appreciated!