How to restrict draggable points movement?

Jul 9, 2010 at 6:29 PM

In the DevSamples >> Intensity Sample, is there a way to restrict the movement of the draggable point so it stays inside of the color map image? I have a similar application where the domain is set to the image size, so you can't pan outside of it. However, you can still drag the point outside and when you let go of the cursor it is lost there forever. How can I make sure it stays inside my bounds?