> On Mon, 7 Jan 2013 23:54:50 +0900 Daniel Juyung Seo <seojuyu...@gmail.com> > said: > >> On Mon, Jan 7, 2013 at 11:56 PM, Carsten Haitzler >> <ras...@rasterman.com>wrote: >> >> > On Mon, 07 Jan 2013 14:36:45 +0000 (GMT) Sumanth Krishna Mannam >> > <sumant...@samsung.com> said: >> > >> > > Hi, >> > > >> > > In my application, I am using elm_scroller inside another elm_scroller. >> > Now I >> > > want the MOUSE,WHEEL events not to be passed to outer scroller, when the >> > > mouse is inside inner scroller. For that I tried by using the API: >> > > evas_object_propagate_events_set(inner_scroller, EINA_FALSE) but this is >> > not >> > > stopping the mouse,wheel events from reaching the outer scroller [ I >> > suspect >> > > it is because elm_scroll uses hit rectangle for handling mouse,wheel]. >> > > >> > > Can anyone suggest me a method how I can stop the events from reaching >> > the >> > > outer scroller ? >> > > >> > > Currently I am able to stop the mouse,wheel events by calling >> > > elm_object_scroll_freeze_push(outer_scroller)/ >> > elm_object_scroll_freeze_pop >> > > (outer_scroller) in EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_OUT event >> > > callbacks of inner_scroller respectively. >> > > >> > > Is it a correct way or is there any other method for doing the same ? >> > >> > event propagation doesnt control scrolling. in this case you have to play a >> > trick put inner scroller in table. place rectagle (color 0 0 0 0) in the >> > same >> > table cell but after (on top) of the scroller and show it. this rect will >> > stop >> > mouse events ont he scroller below it. >> > >> > >> But that will block all the events such as mouse down and up not just wheel >> events. > > well - he didnt say either way if thoe should work or not :) > Thanks for the suggestion. Well, my requirement is to block the mouse,wheel events only. Mouse,down & mouse,up and all other events should be processed normally. Btw, what is your suggestion about the method mentioned in my first mail ? Is it an appropriate one to use in this case or any other method to be used for such a case.
Thanks & Regards, Sumanth ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel