-
Notifications
You must be signed in to change notification settings - Fork 319
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
Feature for issue #244: Attempt at configuring the long press time #245
Conversation
The default is 251 since I beleive that is the default of hammer Added it to the documentation I had to set it at Core and ItemSet
Hi @fras2560, I think that @yotamberk is the best person to review this. I generally only participate in Timeline when it's about the build process or the projects I maintain (like Vis Util and Vis Data in #243). |
lib/timeline/Core.js
Outdated
@@ -1044,6 +1045,11 @@ class Core { | |||
direction: contentsOverflow ? Hammer.DIRECTION_ALL : Hammer.DIRECTION_HORIZONTAL | |||
}); | |||
|
|||
// set the long press time | |||
this.hammer.get('press').set({ | |||
time: this.options.multiselectLongPressTime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're missing default value here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value should now be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fras2560 Thanks for the PR but I think the name of the variable is not correct. I think it should be simply longSelectPressTime since it is not per-say only for multiselect
Did some testing against the default and 251 does seem to be the default right now
Conflicts: docs/timeline/index.html
Conflicts: docs/timeline/index.html
🎉 This PR is included in version 6.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The default is 251 since I believe that is the default of hammer.js
Added it to the documentation
I had to set it at Core and ItemSet although there is probably a better way to achieve this.