flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Frishberg <fri...@gmail.com>
Subject Re: Fix to get DropDownList working on Mobile
Date Tue, 17 Jan 2012 23:52:31 GMT
Hey Tink,

In 4.6, SpinnerList was added--is that good enough, or is this serving a
different use-case?


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

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