Skip to content

Wrong documentation for padding #55

@aantipov

Description

@aantipov

The doc says

The value is relative to the visible height of the area, the default is 0.5 and the minimal value is 0.3

But according to the code both default and minimal values are 0.1

function bufferPadding() {
  return viewport.outerHeight() * Math.max(0.1, +attrs.padding || 0.1);
}

I can fix the code to make it according to the doc.
Otherwise the doc should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions