:: Forum >>

Adobe AIR - Grid Scroll Bars Not Working - Redux

As part of the upgrading the product as noted in (http://www.activewidgets.com/javascript.forum.25578.8/adobe-air-grid-scroll-bars.html) I am in need of using AIR 2.5. When running the application under Adobe AIR 1.5, scrolling the grids via the scroll bars works just fine because of the patch Alex provided. However, the same application running under AIR 2.5 (2.6, 2.7), the grid scroll bar no longer causes the grid to scroll (either with or without the patch.) The scroll bar moves up and down, but no corresponding scroll in the grid. Conversely, though, scrolling the grid via Up/Down Arrows does cause corresponding movements of the scroll bar.

This is easily demonstrable using the AW 'change datasets.htm' example that shows how to load two different datasets into the grid. The scroll bars are ineffective, as stated above.

The only mod made to the example to run it in AIR is to add the line:
<script src="<yourpath>/AIRAliases.js" type="text/javascript"></script>.

And you only need a minimally edited descriptor file (application.xml) to run it.

So, I'm looking for the next work around for Adobe AIR scrolling!

Thanks,
Chris M.
Tuesday, July 12, 2011
Resolved - I've added the useCapture parameter to the addEventListener patch code supplied by Alex (as noted in the forum link above), and set it to 'true'.

This fix works for AIR 1.5, 2.x, 3.0RC

document.body.addEventListener('scroll', function(event){
if (event.target && event.target.getAttribute('onscroll') == 'AW(this,event)') {
AW(event.target, event);
}
}, true);

Chris M.
Thursday, September 22, 2011

This topic is archived.


Back to support forum

Forum search