Skip to content

How to throttle only when visibility is true ? #113

Closed
@mayank-shaan

Description

@mayank-shaan

This is my configuration
I need to use throttle only when visibility is true and instantly emit an event when item not in the visible port

v-observe-visibility="{
              callback: (isVisible, entry) => handelObserveVisibility(isVisible, entry),
              once: false,
              intersection: {
                threshold: 1.0,
              },
              throttle: 3000 }

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