You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using the block's custom context menu to 'Set unmovable', the block is no longer selectable via shift-click. The block may still be selected using the selection rectangle, but displays Blockly's stock context menu instead of the plugin's custom context menu.
The text was updated successfully, but these errors were encountered:
1.) For shift-click: element.classList.contains("blocklyDraggable") is a bad assumption, because the now unmovable block is not draggable, so it loses the "blocklyDraggable" class.
2.) For context menu: Each block's "movable" property is being set/unset correctly. However playgroundState is not being saved to storage, nor is the playground's json preview of workspace contents being updated, until workspace background is clicked upon. Not sure I need to fix this, is it "expected playground behavior?"
* Replaced blocklyDraggable check w/parent != blocklyBlockCanvas
* Added check for 'movable' before dragging selected block.
In the comments, I mention that drag logic may change in the future,
I couldn't decide if "drag everything depending on 'movable' setting
of block under the cursor" was a feature or bug.
Created /assets folder + added screenshots for README, and updated
explanation of package at top of README.
* Changed image url, gists are not allowed.
---------
Signed-off-by: Ron Shaker <rshaker@gmail.com>
After using the block's custom context menu to 'Set unmovable', the block is no longer selectable via shift-click. The block may still be selected using the selection rectangle, but displays Blockly's stock context menu instead of the plugin's custom context menu.
The text was updated successfully, but these errors were encountered: