Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

fix(timeline): destroy hammer bindings of DragCenter and DeleteButton #4110

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ShynRou
Copy link

@ShynRou ShynRou commented Sep 5, 2018

Hey,

Selecting an item in the timeline currently adds 6 listeners each time to the window element but never removes them. Even a few dozen have a huge effect on performance.

I added the destruction of the hammer.js bindings, which fixes the issue.

Best Regards,
Dustin

@yotamberk
Copy link
Contributor

I've now branched out to a new fork of my own including only Timeline.
I've applied your change here: https://github.com/yotamberk/timeline-plus
and can be used via npm here: https://www.npmjs.com/package/timeline-plus
Awesome fix! Thanks for your contribution! Future PRs will be reviewed and added in the new fork

Copy link
Member

@mojoaxel mojoaxel left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants