Skip to content

allow vertical panning for infinite scroll #276

Description

@sasarivera

I'm trying to implement and infinite scroll in event drops.

so far, I have the implementation using a button. This button adds the extra data and redraw the chart (after drawing I'm scrolling the page to the previous scroll position)

`
const doc = document.documentElement;
const top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);

const data = [
...repositories,
...newData
]

d3
.select('#eventdrops-demo')
.data([data])
.call(chart);

window.scrollTo(0, top);
`

this works fine, but I was wondering if I can create a vertical panning to emulate the same functionality?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions