On 16 March 2017 at 17:40, <
cin...@gmail.com> wrote:
>> Unfortunately the world is generally far from ideal. With the UI
>> running in the browser in a phone half a world away it can take a fair
>> time. There are few things worse than tapping something, not being
>> certain whether you touched the screen in just the right place or in
>> just the right way, and then waiting for some feedback which may never
>> come before deciding to try again.
>
>
> mhh, to me the points you mention are exactly the reason for decoupling the
> switch state from its action. If you test the branch I posted, you can see
> that pressing the switch will still show its "I have been clicked"
> animation. Especially on mobile devices, where I am not sure whether it has
> worked or not, I really find this useful the last weeks I tested this, since
> if you had the impression it has not worked, just press again and it will
> send the desired command. And if there is feedback, you see it.
Sorry, I am confused in that case, I thought you wanted it so the
switch did not move till the new value came back. Tell me again what
happens when you touch the switch please.
>
>>
>> In practice I suppose what it actually means is four icons, if they
>> were configurable then we could specify whatever images we wanted for
>> the different states.
>
>
> Would a separate widget not a better solution for this?
> One thing: Assume the button is in its "off" state, both from its control
> and its status. Then you press it, it moves to its control "on" status. But
> the feedback does not come. If you press again, which message should it then
> send? The "off" message, or again the "on" message?
If it has moved then you know it has sent its message so you just have
to wait. If there is a temporary loss of connection then when it
re-connects the switch will go back to the off state, so then you know
to try again.
Colin