restrict drag to arbitrary areas

restrict drag to arbitrary areas


While dragging, is it possible to restrict movement? for instance, to
only allow drag inside circular area?