Adding `maxScrollOffset` property depending on the `isHorizontal` property
Generating `dist`