Hi Tyson;

ClutterDragAction in master has a new drag-area property that will do
exactly what you ask.

As for temporarily disable the action, you can use the
ClutterActorMeta.enabled property.

Ciao,
Emmanuele.
 On Aug 16, 2012 8:33 PM, "Tyson Neuroth" <[email protected]> wrote:

> Is there a way to restrict drag motion to within a container or to a fixed
> set of coordinates?  So that for example, an object inside the area can
> only be dragged to edge, but not out of the area?
>
> Maybe I need to implement my own drag motion logic?  Any thoughts on how I
> should go about this?
>
> My other question is about toggling drag-ability on and off.  I tried
> adding / removing the action, but once the action has been removed, it no
> longer works to add it again.  So my solution is to set the drag threshold
> very high, to disable it.  Is there a better way to make this happen?
>
>
> _______________________________________________
> clutter-app-devel-list mailing list
> [email protected]
> http://lists.clutter-project.org/listinfo/clutter-app-devel-list
>
>
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to