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

Expand negative one check to all negatives #13

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

sjd210
Copy link
Contributor

@sjd210 sjd210 commented Feb 4, 2025

In the Inequality editor for Chem/Nuclear, when a “-1” exists on screen and is using the binary minus symbol (but not when the minus is part of the number directly), items being dragged from the inequality menu will continue to be dragged even when placed.

The line causing this specific problem was

95                    && !right.dockingPoints["superscript"].child;

however this also highlights that the isSolitaryNegativeOne function around it was outdated and causing inconsistent behaviour.

All negative numbers are now treated equally in-grammar (they potentially weren't before?), so this change to broaden the function allows more answers to be processed correctly rather than leading to a syntax error.

@jsharkey13 jsharkey13 merged commit ff2f5f2 into master Feb 4, 2025
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