开发者

Scroll bar in an Item Renderer

开发者 https://www.devze.com 2023-03-10 05:58 出处:网络
I have an item renderer with an HBox with the scroll bar showing. 开发者_运维问答Because the scroll bar is in the ItemRenderer of a TileList when a user drags the slider it triggers the click event on

I have an item renderer with an HBox with the scroll bar showing.

开发者_运维问答Because the scroll bar is in the ItemRenderer of a TileList when a user drags the slider it triggers the click event on the TiLeList.

Is there anyway to maybe stopPropogation of the events on the scroll bar only?


Adding a click handler like this for the HBox should work:

private function hbox_clickHandler(event:MouseEvent):void 
{   
    if(event.target.parent is ScrollBar)    
       event.stopPropagation(); 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消