Skip to content

Add option to continue scroll when leaving scroll ref#1029

Open
AlbinLind wants to merge 3 commits into
namespace-ee:mainfrom
AlbinLind:feature/mouse-leave-scroll
Open

Add option to continue scroll when leaving scroll ref#1029
AlbinLind wants to merge 3 commits into
namespace-ee:mainfrom
AlbinLind:feature/mouse-leave-scroll

Conversation

@AlbinLind
Copy link
Copy Markdown

Issue Number

Currently when scrolling through dragging with the mouse and you leave the timeline div it stops scrolling. When the timeline is a small part of the page with only very few groups that are not very high this is very annoying.

Overview of PR

The PR adds a prop option (continueDragOnMouseLeave) to the main timeline object that makes the ScrollElement capture the pointer event if it is set to true. This allows us to follow the mouse movement outside of the timeline DOM which gives smoother and more predictable scrolling behaviour. By default this option is disables, which means behaviour is by default the same as before.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant