Skip to content
This repository was archived by the owner on Dec 25, 2022. It is now read-only.
This repository was archived by the owner on Dec 25, 2022. It is now read-only.

Ticker vanishes after a while when leaving tab and coming back #29

@ghost

Description

Hi there!
Thank you for this ticker, I really love it.

However, I'm encountering the following problem:
When I have the page open, and just go to another tab and back to the page again after a few seconds, the ticker starts vanishing, almost as if the infinite loop and the ticker ends. So the ticker is gone and only reappears if I refresh the page.
I've tried adding more elements to the Ticker array, but the problem remains the same.
It works just fine when I'm staying on the page.

This is what it looks like, while I'm on the page:
1

This is what happens after I leave the page (without closing it) and come back after a few seconds:
2

I've directly added the ticker in my functional component with other elements.

const SliderTextTop = ({
  text, images, buttonText, buttonLink,
}) => (
  <Wrapper>
...
    <TickerWrapper>
      <Ticker>
        {({ index }) => (
          <div>
            <h1>Some Ticker Text</h1>
          </div>
        )}
      </Ticker>
    </TickerWrapper>
   .....
  </Wrapper>
); 

Any idea what the problem could be?
Thank you in advance!

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