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

Add a new feature: the middle point can be selected for free drag or drag after clicking #211

Closed
wants to merge 5 commits into from

Conversation

LarryZhu-dev
Copy link

Description of Changes

Add a new feature: the middle point can be selected for free drag or drag after clicking
Now the type of midpoints has changed to:

midpoints?: {
	show: boolean;
	draggableMod: "free" | "afterClick";
} | boolean

And this property was checked in onDragStart(), where you used the onClick() method you wrote to make drag and drop equivalent to a left click effect

Link to Issue

#205

PR Checklist

  • There is a associated GitHub issue

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