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

Feature for issue #244: Attempt at configuring the long press time #245

Merged
merged 11 commits into from
Jan 25, 2020
Merged

Feature for issue #244: Attempt at configuring the long press time #245

merged 11 commits into from
Jan 25, 2020

Conversation

fras2560
Copy link
Contributor

@fras2560 fras2560 commented Jan 8, 2020

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.

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
@fras2560 fras2560 requested review from Thomaash and mojoaxel January 14, 2020 21:00
@Thomaash
Copy link
Member

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).

@Thomaash Thomaash requested a review from yotamberk January 14, 2020 21:08
@@ -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
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

@yotamberk yotamberk left a 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

@yotamberk yotamberk merged commit dad6123 into visjs:master Jan 25, 2020
@vis-bot
Copy link
Collaborator

vis-bot commented Jan 25, 2020

🎉 This PR is included in version 6.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants