Fix for the overlapping of workspace scrollbar onto the blocks drawer. #3158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've implemented functionality to detect whether the drawer within the workspace is opened. If it is open, I've ensured that the scrollbar gets hidden to provide a seamless user experience to interact with the last block. (changes made in the hideChaff() function).
I've added code to set the scrollbar visibility upon zooming in or out if the user wants to position the existing blocks properly. (changes made in the onMouseWheel_() function).
BEFORE:
Link: https://github.com/mit-cml/appinventor-sources/assets/116882464/88a26769-242b-409d-ae9b-5da3c93f941f
**AFTER: **
Link: https://github.com/mit-cml/appinventor-sources/assets/116882464/42a95582-9173-4ee6-ac9e-fc66a12203fc
Would love to hear any other possible better solutions or suggestions.