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

listen for mouseleave to end dragging #4234

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Conversation

JacksonRG
Copy link
Collaborator

@JacksonRG JacksonRG commented Jul 16, 2021

Event listener for mouseleave (which unlike mouseout doesn't occur when mouse enters a child element) ends dragging.

Edit I just made a large PR regarding ruler.js So, I'm going to rebase this after for simplicity.

Comment on lines +108 to +112
// Stop scrolling if mouse leaves timeline
element.on("mouseleave", function (e) {
is_scrolling = false;
element.removeClass("drag_cursor");
})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New function looks good

@JacksonRG JacksonRG merged commit f654a7b into develop Jul 29, 2021
@JacksonRG JacksonRG deleted the end-drag-outside-timeline branch July 29, 2021 23:41
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.

2 participants