enyojs/moonstone — pull request #1312 by aarontam (2014-05-21 18:17:15+00:00)
Title: BHV-743: Adjust scroller edge when navigating to first or last row.

Issue
-------
The "up" paging control is not deactivated when the top of the list is reached via 5-way (and likewise, the "down" paging control is not deactivated when the bottom of the list is reached).

Fix
----
We pre-compute the index bounds for the first and last rows, and compare the currently spotted/focused item's index with these bounds, scrolling to the top or bottom accordingly. Additionally, I consciously chose to break out the column value into a separate variable `columnSize` for the sake of code readability, as we could have just used `this._indexBoundLastRow` instead.

Notes
--------
Open question for review - will there be any side effects from programmatically scrolling to the top/bottom in these cases?

Enyo-DCO-1.1-Signed-off-by: Aaron Tam