Skip to content

Trigger avoidShowingBackground on load #1250

@martingarnett01

Description

@martingarnett01

I'm using avoidShowingBackground to clamp my partial pano, but on load, you can still see the black background (noticeable mainly on mobile – portrait viewports).

When clicking or tapping the pano for the first time, it kicks into action and behaves how I want it to (on all screen resolutions, eg. desktop and mobile).

Example:
https://codepen.io/martingarnett01/pen/GgKdRPm

Any ideas on whether I can change a setting or somehow trigger the avoidShowingBackground onLoad?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions