Astute Corona developers will have noticed that yesterday’s daily build 2014.2481 includes a *lot* of changes and fixes to the widget library, especially scrollviews. One of those changes is listed as fixing a getContentPosition() bug, casenum 34675.
Unfortunately those changes have broken the scrollview widget in a different way. Previously when a user pulled down the scrollview from the top — the standard app refresh gesture — the content position returned would be a positive number. Now the content position returned is always 0.
Here is the output of pull-down-to-refresh from a daily build a week ago:
Version 2014.2472 (2014.10.23) 2014-10-30 14:45:02.441 Corona Simulator[60376:507] debug: y position is: 322| y contentPosition is: 36.5 2014-10-30 14:45:02.458 Corona Simulator[60376:507] debug: y position is: 324| y contentPosition is: 37.5 2014-10-30 14:45:02.475 Corona Simulator[60376:507] debug: y position is: 328| y contentPosition is: 39.5 2014-10-30 14:45:02.492 Corona Simulator[60376:507] debug: y position is: 331| y contentPosition is: 41 2014-10-30 14:45:02.510 Corona Simulator[60376:507] debug: y position is: 332| y contentPosition is: 41.5 2014-10-30 14:45:02.526 Corona Simulator[60376:507] debug: y position is: 335| y contentPosition is: 43
Here is the output of pull-down-to-refresh from the latest broken daily build:
Version 2014.2482 (2014.10.30) 2014-10-30 14:37:14.543 Corona Simulator[59951:507] debug: y position is: 325| y contentPosition is: 0 2014-10-30 14:37:14.560 Corona Simulator[59951:507] debug: y position is: 328| y contentPosition is: 0 2014-10-30 14:37:14.577 Corona Simulator[59951:507] debug: y position is: 330| y contentPosition is: 0 2014-10-30 14:37:14.593 Corona Simulator[59951:507] debug: y position is: 332| y contentPosition is: 0 2014-10-30 14:37:14.611 Corona Simulator[59951:507] debug: y position is: 335| y contentPosition is: 0 2014-10-30 14:37:14.628 Corona Simulator[59951:507] debug: y position is: 337| y contentPosition is: 0 2014-10-30 14:37:14.644 Corona Simulator[59951:507] debug: y position is: 338| y contentPosition is: 0
I’m grateful to the Corona folks for addressing some of these long-standing widget issues, and it seems as though the scrollview is smoother in terms of performance. But it would sure be nice if a daily build later this week would fix this newly-introduced content position bug.
While I’m at it, can we have the mysteriously disappeared endedScroll event restored? It’s approaching a year: http://forums.coronalabs.com/topic/43778-restoring-deleted-scrollview-feature-endedscroll-event/ Thanks in advance.