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

Fix race condition / edge case in _strokeUpdate where this._data can sometimes be [] #601

Closed
wants to merge 1 commit into from

Conversation

M1ke
Copy link

@M1ke M1ke commented Feb 21, 2022

Replicates #481 but into v2 branch.

There are other libraries that depend upon older versions of this library and may not want to carry out refactoring to upgrade through 2 major versions to receive this fix.

An example is discussed here agilgur5/react-signature-canvas#68

As the fix is very simple, and maps exactly from v4 back to v2, I am proposing this is merged and a new minor or point release of v2 is cut to include it.

@UziTech
Copy link
Collaborator

UziTech commented Feb 24, 2022

I think there are better ways to handle agilgur5/react-signature-canvas#68 than to try to maintain old versions of signature_pad. see agilgur5/react-signature-canvas#68 (comment)

@M1ke
Copy link
Author

M1ke commented Feb 25, 2022

I'd agree if there were a range; however this is just one change, and is for what seems to be quite a long standing issue. The benefit of this change is that it requires no changes downstream, and we already know this change fixes the issue in v4, so it should work here. So I guess it depends who has the responsibility, but the change here is definitely the lowest overall amount of work having to be done by people on aggregate.

@UziTech
Copy link
Collaborator

UziTech commented Mar 1, 2022

I don't think we are going to maintain two versions of this library.

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