2010/10/6 Tiago Falcão <[email protected]>: > I prefer two signals: "swipe,left" and "swipe,right". You can want register > both with the same callback.
Ceolin asked me and I said "go with one, if required we do others later". Most software I've tested just listen for generic swipe action and the direction does not matter at all (if you think of left and right handed people this makes more sense). > 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. that's how we do for scroller kinetic detection. Keeping history we can avoid outliers (would need bit of algorithm changes). > 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. yeah, the point is to have something usable and define an API. Maybe rasterman have some comments, but in my opinion it's ready to go in (after some changes I've already requested Ceolin and he should send soon). BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ 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
