The_asMan
The_asMan

Reputation: 6403

Scroll bar in an Item Renderer

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?

Upvotes: 0

Views: 130

Answers (1)

user700284
user700284

Reputation: 13620

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(); 
}

Upvotes: 1

Related Questions