cgkineo / adapt-scrollSnap

An extension which hides the scrollbar and snaps to blocks for large devices. Navigation based on swipe gestures, specific keyboard navigation, the mouse wheel, and an optional scroll button. Content is set to fill the viewport height.
GNU General Public License v3.0
1 stars 1 forks source link

adapt-scrollSnap

An extension which hides the scrollbar and snaps the scroll position to blocks for large devices. Navigation based on swipe gestures, specific keyboard navigation, the mouse wheel, and an optional scroll button.

Content is set to fill the viewport height.

Please see this blog post for an example of how this has been used.

Settings Overview

scrollSnap is configured in course.json. The attributes are properly formatted as JSON in example.json.

Attributes

The following attributes are set within course.json:

_scrollSnap (object): The scrollSnap object that contains the configuration settings.

_isEnabled (boolean): Turns the extension on/off. Acceptable values are true and false.

_useNavigationOffset (boolean): Determines whether to use the navigation height to offset the content and scroll positions. Acceptable values are true and false. Set to false to fill the entire viewport height.

_scrollDuration (number): The duration of the scroll transition.

_button (object): The configuration setting for the scroll button.

_isEnabled (boolean): Turns the scroll button on/off. Acceptable values are true and false.

label (string): The label for the scroll button.

Limitations