On Thu, 18 Nov 2010 11:51:39 +0900 Daniel Juyung Seo <[email protected]> said:
gustavo is right - in normal terms, if you drag out of the target object (eg a button) then the click is cancelled - thus no "clicked". but you cant just say "if mouse is NOT moved at ALL" as there is always jitter/error in input. you need to be more "if mouse is not moved far ENOUGH". this is where you have a slicke conflict. as such normally dragging far enough becomes a scroll in many circumstances - elm's scroller takes care of this with an on_hold flag - edje didnt look at this determining clicked signals as on_hold came much later. i just added that in. so if you drag to scroll for example - clicked will not happen on release. but for something not scrollable - u'd have to drag outside of the target object to cancel the click. that is actually the common case. as for other widgets - they shoudl also respect this and this needs to be fixed where it isnt consistent, but as such it should work like this: 1. mouse down AND up without dragging outside of obj == clicked, otherwise just a normal mouse up - no "clicked" signal. 2. mouse down then dragging far enough to scroll if its inside a scroller == cancel any future clicks. on_hold does this job for us, and edje just didnt know it. other widgets need to do this too though. fixed in edje as of today. > Good question. Anybody has a good idea about that? > > I also had the same issues while writing widgets and applications. > Even the wikipedia is not an Enlightenment dictionary, > it says "A single-click or click is the act of pressing a computer > mouse button once without moving the mouse." > But edje emits clicked signal even when the mouse is moved. > I think this needs to be changed. > > Thanks. > Daniel Juyung Seo. > > > 2010/11/18 정우현 <[email protected]>: > > > > Hello. I'm WooHyun Jung. > > > > > > I have one question about "clicked" signal. > > > > > > In Elementary - some widgets call a signal named "clicked". > > > > But I cannot understand the exact meaning of "clicked" signal in > > elementary. > > > > For instance, in elm_entry, the signal is called whenever mouse_up is > > occured. > > > > This means "mouse_down => mouse_move => mouse_up" is also "clicked" in > > elm_entry. > > > > It doesn't consider about flicking and scrolling either. > > > > > > I think app engineers will be in agony, if each widget has diffent meaning > > for "clicked" signal. > > > > I wanna hear about your opinion about this. > > > > > > Thanks !! ^-^ > > > > > > ------------------------------------------------------------------------------ > > 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/msIE9-sfdev2dev > > _______________________________________________ > > enlightenment-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > ------------------------------------------------------------------------------ > 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/msIE9-sfdev2dev > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ 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/msIE9-sfdev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
