Unexpected behaviour after upgrading to Blockly 11.1.1

77 views
Skip to first unread message

Viktar Tserashchuk

unread,
Nov 11, 2024, 10:55:26 AM11/11/24
to Blockly
I migrated my application form Blockly 9.1.0 to 11.1.1 and noticed that now deleting a block via dragging it onto the toolbar shifts the workspace.

There was once a bug that describes exactly what I experience with the latest Blockly.

The behaviour can be reproduced here devsite-landing-demo. There just need to be enough space to make the shift and blocks must be right near the toolbox.

workspace_shift.png

This shift is what I don't want to have.

The question is if this is a regression bug and I can expect it will be fixed in a future version of Blockly. Or this is the expected behaviour, and I need to find a workaround to avoid the shift.

Aaron Dodson

unread,
Nov 11, 2024, 3:55:28 PM11/11/24
to Blockly
Hi,

This certainly isn't intended; I'm not able to recreate it in the devsite demo, but it is something we want to fix.

- Aaron

Viktar Tserashchuk

unread,
Nov 12, 2024, 8:43:27 AM11/12/24
to Blockly
Hi Aaron,

Two following conditions should be met to reproduce the issue:
1. Blocks are right to the toolbox
2. There is a lot of space to the right.

It might be that devsite demo is not the best page for demonstration as the significant part of it is taken by the section with generated code. Initially I tested it with a FullHD screen without scaling. Today I open the page on my laptop with 125% screen scaling and there is just not enough space for the shift to happen. It might be also the reason you are not able to reproduce it. 
But it's still possible to see the issue even there with a larger screen of with the  page that is zoomed out just to have more free space on the workspace. 
Or you can try Blockly Developer Tool. I can see the same issue there even on my laptop screen without zooming out.

Viktar

Aaron Dodson

unread,
Nov 12, 2024, 4:40:50 PM11/12/24
to Blockly
Thanks! One of my colleagues was able to repro it at least. I've opened https://github.com/google/blockly/issues/8655 to track the issue.

- Aaron

Mateus Pereira

unread,
Nov 22, 2024, 12:04:46 PM11/22/24
to Blockly
Hello!

Here is a fix for this issue:
https://github.com/google/blockly/pull/8666

- Mateus
Reply all
Reply to author
Forward
0 new messages