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. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ 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