unity-dev team mailing list archive
-
unity-dev team
-
Mailing list archive
-
Message #00708
Re: Bug #1154364
That's what I tought. It can start at 250 ms and go down till 40 ms. I'll try to send you something in next few days.
thanks
Sent: Wednesday, November 04, 2015 at 2:44 PM
From: "Marco Trevisan" <marco.trevisan@xxxxxxxxxxxxx>
To: "Prasad Somwanshi" <prasad.s@xxxxxxxx>, unity-dev@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Unity-dev] Bug #1154364
Il 04/11/2015 15:38, Prasad Somwanshi ha scritto:
> Marco,
>
> Right now, there is pause of 40 ms , which is reset after each keystroke. To check is user is still typing in.
> My suggestion is a bit different.
> Depending on no of characters in search box, it should wait decresing no of ms before doing actual search.
>
> If user presses 'P', it's single character, so wait for 500 ms(or 250 ms), and there are more chances of use typing in more characters.
> Then user presses 'r'. We have 2 characters.(then wait for 250 ms(or 125 ms). Keep on reducing wait time as no of characters grows, and keep existing 40 ms as floor .
> So user may be able to do actual search 'prasad', without having to do search 'p' or 'pr' or 'pra'.
> So it will avoid effect of displaying result for non intended search words.
The idea it's not bad...
Maybe 500ms as starting point is too much, as sometimes I'd just want to
type "f", firefox spots and I hit enter, but we could indeed increase
this wait so that it's slower and then gets quicker.
If you want to contribute with a branch, it would be cool to review it.
Thanks
References