-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Left tool drawing preview is not visible when right tool has preview #1157
Comments
This can be fixed with a (quick and dirty) check on draw preview. I've done this here but this was before I realized the select tools are affected and the rectangular selection tool is an exception to this bug. So I haven't started a PR with this change yet to look at how rectangular selection handles it. |
Thank you so much for finding the bug! I had gotten reports that the tool preview was sometimes not being shown and I had no idea what caused it. I suppose this must be the root of the issue. I believe 59254b9 should be enough to fix the issue, hopefully I didn't break anything else, feel free to let me know if you encounter any issues! |
My bad, that commit did not fix the issue for all tools. a698668 should now also fix the curve and polygon selection tools. |
Amazing! You're very welcome, glad I could help narrow it down. I've just tested this and can confirm this fixes all previews. |
Pixelorama version:
Tested on 033238b and v1.0.5-stable
Where did you download Pixelorama from?
Github
OS/device including version:
Tested on Debian 12 and Windows 10
Issue description:
I selected two tools that show a drawing preview on both left and right click, e.g. Line tool and Lasso, and the left tool drawing preview is not visible when drawing as would be expected. Only the right tool drawing preview is visible when drawing.
This bug seems to affect any line, shape, or selection tool that has a drawing preview, the only exception is the rectangular selection tool, which behaves as expected.
Affected tools:
Examples with selecting the same tool on left/right and using left tool, then right tool:
![select-tools](https://private-user-images.githubusercontent.com/102336124/397895546-ca56bede-d529-4e7b-9335-f496f0208f7f.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4Njk3MDQsIm5iZiI6MTczODg2OTQwNCwicGF0aCI6Ii8xMDIzMzYxMjQvMzk3ODk1NTQ2LWNhNTZiZWRlLWQ1MjktNGU3Yi05MzM1LWY0OTZmMDIwOGY3Zi5naWY_WC1BbXotQWxnb3J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YzY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0W_d2YpqQBZ09SnR1Y9AAQb5nwixJp5ZuWwGAgRk8Aw)
Steps to reproduce:
The text was updated successfully, but these errors were encountered: