I prefer two signals: "swipe,left" and "swipe,right". You can want register both with the same callback.
I doesn't like listen and store 15 or N mouse_move events, i prefer listen mouse_move only to validate the horizontal path and don't store all the history. We can calculate the swipe only in mouse_down and mouse_up, check the horizontal distance and the time to know when emit or not the signal. So, we don't need one ecore.timer or the x/y array. But works fine, after anyone do some optimizations. 2010/10/6 Flávio Ceolin <[email protected]> > Hello, > > I have done a patch to add a new event for the elm_list similar to the > iphone swipe's effect. > The event is quite simple, it's triggered when a horizontal drag plus > mouse release occur. > > There are two patches, the first is the feature itself and the second > is just two examples for elementary_test. > > > Best regards, > > Flavio Ceolin > Developer @ ProFUSION Embedded Systems > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > -- Tiago Rezende Campos Falcão Developer @ ProFUSION Embedded Systems ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
