[iPad] Keep toolbox categories re-openable on consecutive taps in Blocks editor#11318
[iPad] Keep toolbox categories re-openable on consecutive taps in Blocks editor#11318Copilot wants to merge 5 commits into
Conversation
Agent-Logs-Url: https://github.com/microsoft/pxt/sessions/03503b57-7e02-4a06-8765-b7f0563c16ed Co-authored-by: srietkerk <49178322+srietkerk@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/pxt/sessions/03503b57-7e02-4a06-8765-b7f0563c16ed Co-authored-by: srietkerk <49178322+srietkerk@users.noreply.github.com>
|
@copilot This change is close to what we need, but this change also makes it so that tapping the category again, if the flyout is open, does not close the blockly flyout. This is expected behavior. Can you fix that? |
Agent-Logs-Url: https://github.com/microsoft/pxt/sessions/1f677429-a862-454c-9aa3-bae415f00ce8 Co-authored-by: srietkerk <49178322+srietkerk@users.noreply.github.com>
Updated in b3b2ecd. Same-category taps now close the flyout only when it is currently open, and reopen it when it’s already closed (the iPad regression case). Screenshot: /tmp/pxt-toolbox-retap-followup.png Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot you got rid of the original fix. Can you add the "isTouchEnabled" check back into the condition? |
Agent-Logs-Url: https://github.com/microsoft/pxt/sessions/ccd44e42-ea24-44be-9d68-39880725dac7 Co-authored-by: srietkerk <49178322+srietkerk@users.noreply.github.com>
Updated in 5e368d3. I added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
On iPad/touch devices, tapping the same toolbox category twice in a row could leave the category unusable until another category was selected. This updates toolbox selection behavior so repeated taps on the same category continue to work as expected on touch, while preserving expected toggle-close behavior.
Behavior change: category reselection and toggle behavior
Toolbox.setSelection(...)inwebapp/src/toolbox.tsxto:Editor support for flyout visibility checks
isFlyoutVisible()toToolboxEditorand implemented it in:webapp/src/blocks.tsxwebapp/src/monaco.tsxCode hygiene in touched logic
> [!WARNING]
>
>