Hi Maurice,

I've fixed the issue here - it looks as if the scroller requires a mouse
down after a drag scroll gesture before it allows its children to dispatch
click events. If you run the attached MXML, after a drag scroll, the button
bar doesn't report a change until the user clicks the background.

Easy workaround for me - my nodes no longer stop the propagation of mouse
downs.

Simon


On 19 April 2014 10:05, simon gladman <[email protected]> wrote:

> I think it must be my code if it's not known - I have button bars inside
> widgets inside a scroll container. After a drag scroll, they dispatch mouse
> down events but not click or index changed events. I've created a
> simplified version, but the issue isn't reproducible. I'll keep trying :)
>
> Incidentally, is https://issues.apache.org/jira/browse/FLEX-34198
>  scheduled?
>
> Simon
>
>
> On 19 April 2014 08:46, Maurice Amsellem <[email protected]>wrote:
>
>> Didn't notice this.
>> Can you post some code that shows the issue ?
>>
>> Maurice
>>
>> -----Message d'origine-----
>> De : simon gladman [mailto:[email protected]]
>> Envoyé : samedi 19 avril 2014 07:37
>> À : [email protected]
>> Objet : Mobile Scroller Issue
>>
>> Hi All,
>>
>> Has anybody else experienced a bug where buttons inside a scroller (with
>> interaction mode set to *touch*) don't dispatch a click event after a drag
>> scroll (interestingly, they do dispatch a mouse down)?
>>
>> Cheers,
>>
>> Simon
>>
>> --
>> *flexmonkey.co.uk <http://flexmonkey.co.uk> | @FlexMonkey <
>> https://twitter.com/FlexMonkey> | +44 (0) 7973 669691*
>>
>
>
>
> --
> *flexmonkey.co.uk <http://flexmonkey.co.uk> | @FlexMonkey
> <https://twitter.com/FlexMonkey> | +44 (0) 7973 669691
> <%2B44%20%280%29%207973%20669691>*
>
>


-- 
*flexmonkey.co.uk <http://flexmonkey.co.uk> | @FlexMonkey
<https://twitter.com/FlexMonkey> | +44 (0) 7973 669691*
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
applicationDPI="160" creationComplete="buttonBarContainer.move(200, 400)">
        
        <fx:Script>
                <![CDATA[
                        import mx.collections.ArrayCollection;
                ]]>
        </fx:Script>
        
        
        
        <s:Scroller width="100%" height="100%">
                <s:Group clipAndEnableScrolling="true" top="0" left="0" 
right="0" bottom="0">
                        
                        <s:Group width="5000" height="5000">
                                
                                <s:Rect top="0" left="0" right="0" bottom="0">
                                        <s:fill>
                                                <s:SolidColor color="0xC0C0C0" 
/>
                                        </s:fill>
                                </s:Rect>
                                
                                <s:Group top="100" left="100"  
id="buttonBarContainer" mouseDown="event.stopImmediatePropagation()">
                                        <s:ButtonBar id="buttonBar" 
dataProvider="{new ArrayCollection(['a','b','c','d'])}"  change="trace 
('change', buttonBar.selectedIndex)" />
                                </s:Group>

                        </s:Group>
                </s:Group>
        </s:Scroller>
        
</s:Application>

Reply via email to