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

You can't multi-drag-select an even number of items in a group #2023

Open
DNin01 opened this issue Jul 12, 2022 · 2 comments
Open

You can't multi-drag-select an even number of items in a group #2023

DNin01 opened this issue Jul 12, 2022 · 2 comments

Comments

@DNin01
Copy link

DNin01 commented Jul 12, 2022

There's a bug where if you are drag-selecting while holding shift and you select a group, that group does not get selected if the selection area covered an even number of items. Instead, you have to shift-click the group.

Expected Behavior

The group should always be selected or deselected.

Actual Behavior

The group is only selected or deselected if while holding shift you drag-select an odd number of items that are part the group.

This is probably because for every group item selected, Scratch doesn't consider if they are in a group, and then goes on to treat each item individually as if they were not grouped. Scratch selects or deselects that group as many times as items in it were selected. If there are say, four items from a group that were in the selection area, Scratch does this four times - selecting, then deselecting, and then selecting again, and finally deselecting again.

System Details

Windows 10
Scratch app version 3.27.0
Microsoft Edge version 103
Mouse and keyboard

Demonstration

2022-07-12.15-04-56.mp4
@DNin01 DNin01 changed the title Multi-drag-selecting an even number of items in a group You can't multi-drag-select an even number of items in a group Jul 13, 2022
@cwillisf
Copy link
Contributor

Wow, thanks for the detailed and insightful report! Such a weird bug :D

@adroitwhiz
Copy link
Contributor

This is similar to #567, and a similar fix may work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants