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

Fixing NaN endPoint Issue Causing Extra Lines in Marker Drawing #164

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tugcearar
Copy link

This pull request aims to resolve an issue where extra lines appear on the screen during the drawing process with marker. The problem stems from situations where the endPoint value becomes NaN. To mitigate this, the proposed solution involves implementing a check for isNaN before processing the endPoint.

Changes Made:
Introduced a conditional check for NaN values in the endPoint.
Added validation to ensure that only valid numerical values are used for drawing, preventing unexpected artifacts.

Screenshot and video:
Screenshot

RPReplay_Final1693468671.mov

Thank you for reviewing this pull request. Your feedback is essential in ensuring the quality and functionality of the codebase.

Tuğçe Arar and others added 3 commits August 31, 2023 10:40
Sometimes, additional lines appear on the screen while I'm drawing. This is often caused by the endPoint becoming NaN in some cases. By implementing a check for isNaN, this issue is resolved.
revert version update
@tugcearar tugcearar changed the title Fixing NaN endPoint Issue Causing Extra Lines in Drawing Fixing NaN endPoint Issue Causing Extra Lines in Marker Drawing Aug 31, 2023
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