Skip navigation
Currently Being Moderated

ContextMenu in ItemRenderer requires 2 clicks to activate

Jun 8, 2012 12:14 PM

I have an ItemRenderer that contains an image and a custom component that extends the Text component. The subclassed text component always requires two clicks to activate the context menu. The first click can be either a left- or right-click. The image functions properly and activates the context menu on the first right-click.

 

I've tried setting focus on the custom component, capturing mouse clicks, and setting the priority of the context menu addevent listener so that it takes precedence, none of which work.

 

This is a "legacy" project that uses Flex 3.6a SDK.

 

Is this a problem with subclassing the Text component?

 

Bart

 
Replies
  • Currently Being Moderated
    Jun 8, 2012 1:53 PM   in reply to Barticula

    Try setting selectable=false on the Text component ( assuming you don’t need selection for copy/paste)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points