Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 379C29237 for ; Wed, 18 Jan 2012 00:07:58 +0000 (UTC) Received: (qmail 28689 invoked by uid 500); 18 Jan 2012 00:07:58 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 28550 invoked by uid 500); 18 Jan 2012 00:07:57 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 28542 invoked by uid 99); 18 Jan 2012 00:07:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 00:07:57 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of izzmeifter@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-tul01m020-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 00:07:50 +0000 Received: by obcwo8 with SMTP id wo8so4161333obc.6 for ; Tue, 17 Jan 2012 16:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=2q2PmttqowSdKw9NCgjyi/bhjNGRE3tzlioyT+5bd9A=; b=hULJChli0Uye+YZqMitDw+wsuntDAUNTJ914LjZpRE0YRFk30ACeGGEE99lCtLYGtO NbQqXy0MjOWk9dDGmZJgOpaMS17yoKpWfFsFnthzKM53gcdPq/zlKHSxZF2YrdQ9CPaQ B3ImFvxYEidet+n9//V6m51fxPP0dTcDYWpGc= Received: by 10.182.154.33 with SMTP id vl1mr4717400obb.58.1326845249210; Tue, 17 Jan 2012 16:07:29 -0800 (PST) MIME-Version: 1.0 Sender: izzmeifter@gmail.com Received: by 10.182.88.41 with HTTP; Tue, 17 Jan 2012 16:07:08 -0800 (PST) In-Reply-To: References: <3070BA26-AEB2-44ED-9308-7E3E6E90C2B5@tink.ws> <357A54C9-B918-4AA9-8D28-CD6D895353DA@tink.ws> From: Darren Yuhar Date: Tue, 17 Jan 2012 17:07:08 -0700 X-Google-Sender-Auth: fU6oj4Rm0m-NmAk_zEZYeo-qTDU Message-ID: Subject: Re: Fix to get DropDownList working on Mobile To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0447a071c0497104b6c23b6c X-Virus-Checked: Checked by ClamAV on apache.org --f46d0447a071c0497104b6c23b6c Content-Type: text/plain; charset=ISO-8859-1 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 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 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 > --f46d0447a071c0497104b6c23b6c--