Skip navigation
eZACKe
Currently Being Moderated

PopUpAnchor listening for Scrolling

Aug 1, 2012 12:12 PM

Tags: #anchors #scrolls #popups

I have a PopUpAnchor, and when I scroll I need the position to update. So I'm calling the updatePopUpTransform() method.

 

When you use the scrollbar everything is good. However, when you scroll using the wheel, the updatePopUpTransform seems to be off by about 1 scroll. So if I need my PopUpAnchor to be right at the bottom of something on screen, now there is a gap between them. This doesn't happen when you scroll using the scrollbar though. Anyone have any ideas why these 2 are working differently?

 

Here's some of my code:

  this.grid.addEventListener( ScrollEvent.SCROLL, myCallBack );

  this.grid.addEventListener( MouseEvent.MOUSE_WHEEL, myCallBack);

 

And in my call back:

this.myPopup.updatePopUpTransform();

 

I've even tried having myCallBack just called from a single Event.SCROLL event, and that doesn't work either. Same results.

 

Thanks for the help!

 

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