Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto scroll when dragging #341

Open
3 tasks
andrewdoro opened this issue Mar 10, 2024 · 0 comments
Open
3 tasks

feat: auto scroll when dragging #341

andrewdoro opened this issue Mar 10, 2024 · 0 comments
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@andrewdoro
Copy link
Collaborator

Describe the feature you'd like to request

Implement auto scroll when dragging. Currently dragging in based on the native HTML integration.

novel-drag.mp4

Added this PR for an example implementation but I am not confident is a good solution #340

Describe the solution you'd like to see

  • auto scroll based on acceleration and speed
  • customizable speed
  • take into account scroll container not being the window object

I've seen this solution in dnd-kit but needs to be adpated for our use case with Tiptap:
https://github.com/clauderic/dnd-kit/blob/694dcc2f62e5269541fc941fa6c9af46ccd682ad/packages/core/src/hooks/utilities/useAutoScroller.ts#L4

Additional information

No response

@andrewdoro andrewdoro added feature New feature or request help wanted Extra attention is needed labels Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant