incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Yuhar <dar...@initstudios.com>
Subject Re: Fix to get DropDownList working on Mobile
Date Wed, 18 Jan 2012 00:07:08 GMT
I've been doing some performance testing with SpinnerList and find it's so
heavy that using it in combination with a ViewNavigator takes an
unacceptable amount of time to switch views if the spinner is on the new
view.

A proper functioning mobile DropDownList would be a great contribution for
a lighter choice of list selection.



On Tue, Jan 17, 2012 at 4:52 PM, Ryan Frishberg <frishy@gmail.com> wrote:

> Hey Tink,
>
> In 4.6, SpinnerList was added--is that good enough, or is this serving a
> different use-case?
>
> -Ryan
>
> P.S. - I still plan on going to a London user group meeting, but I'm out of
> town or busy during all of the scheduled ones (including January).
>  Hopefully soon, I'll get a chance to swing by :-)
>
> On Tue, Jan 17, 2012 at 11:18 PM, Tink <flex@tink.ws> wrote:
>
> > I've but an example up of what I believe could be a very simple fix for a
> > DropDownList working on mobile (obviously I'll put an AS skin together if
> > you guys are interested in this fix).
> >
> > On desktop the item is selected on mouse down and the drop down closed.
> > This doesn't work on mobile as the user may be scrolling the list, and
> > therefore the committing of the selected index doesn't happen until mouse
> > up.
> >
> > I propose that in the override item_mouseDownHandler and we check the
> > interactionMode. If it's "touch" we don't set  userProposedSelectedIndex
> > and we DON'T CLOSE the dropDown, not not touch it carries on as normal,
> > hopefully not introducing any new bugs.
> >
> > We add an override for,  setSelectedIndex call super then check the
> > interactionMode. If it's touch, set userProposedSelectedIndex and we
> CLOSE
> > the dropDown.
> >
> > http://svn.apache.org/viewvc/**incubator/flex/whiteboard/**
> > tink/mobile_dropdownlist/<
> http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/mobile_dropdownlist/
> >
> >
> > cheers
> >
> > Tink
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message