Hi.
I was looking at tidy finger scroll. The captured event handler of tidy
finger scroll always returns TRUE.
As a result, if any of the child actors of scroll view is reactive and is
connected to a button press event, receives the event.

Is there a way, i can delay the propagation of events to the children of
finger scroll depending
on whether finger scroll receives a motion within a timeout period.

The idea is to make the children unreactive during finger scrolling but
reactive only when there is no scrolling.

Something like this is what i am looking at :

*Example Finger scroll code:*

var cloned_event

captured_event (event)
{
   if (button press)
   {
     cloned_event = clone_event (event)
      add_timeout (timeout_func, cloned_event)
   }

   return FALSE;
}

motion_event ()
{
   free (cloned_event)
   cloned_event = NULL
}


timeout_func ()
{
   if (event)
     //propogate event to children; (clutter_event_put?)


   free (cloned_event)
   cloned_event = NULL
}

Is this the right approach? Or is there a better way of achieving the same?

Cheers,
Rajith

Reply via email to