Skip to content

if you load the screen, and the slide is halfway between two slides, the map doesn't load #153

@DanielJWood

Description

@DanielJWood

in onScroll, this doesn't fire correctly: slideActive = slide;.

I'm. not sure I follow the logic of the following but it should fire on scroll and on load:

    if (
      (isAfterTitleCard && (bounds.top < window.innerHeight && bounds.bottom > 0)) ||
      (!isAfterTitleCard && (bounds.top < window.innerHeight * .9 && bounds.bottom > 0))
      ) {

If the slide is halfway between two screens, it doesn't fire.

slideActive = slide; is fired inside that logic, so if the logic doesn't fire, then the map doesn't fire, on Load.

This is a pretty edgy edge case.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions