Inquirer.js: Disable scrolling behind first/last element

Created on 31 Aug 2018  路  4Comments  路  Source: SBoudrias/Inquirer.js

By default paginator allows to scroll behind last element by "overflowing" to first element, and vice-versa. Is it possible to disable this behavior?

Most helpful comment

The list of choices that I want to display is ordered chronologically, it's very confusing when the last item appears before first.

All 4 comments

Any specific reason you need to prevent this behavior?

The list of choices that I want to display is ordered chronologically, it's very confusing when the last item appears before first.

+1 to this suggestion.

I would also want the pager to only scroll when the highlighted option hits the bottom.

@SBoudrias There is at least should be an ability to change/control this behavior.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mechanical-turk picture mechanical-turk  路  3Comments

szul picture szul  路  5Comments

bugzpodder picture bugzpodder  路  4Comments

Mrooze-zeng picture Mrooze-zeng  路  5Comments

alex-ppg picture alex-ppg  路  3Comments