Skip to content

In a flyTo call with browser.prefersReducedMotion=true, the padding option is lost #6576

@manuel-em

Description

@manuel-em

If we call a flyTo and the user has the prefersReducedMotion option activated in his browser, a jumpTo is called instead.

In the flyTo code, the options for the jumpTo are created by a pick from the flyTo options but nothing is done for the padding, so a padding option is lost in this case of this browser configuration.

Concerned line :

const coercedOptions = pick(options, ['center', 'zoom', 'bearing', 'pitch', 'roll', 'elevation']) as CameraOptions;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions