Skip to content

Conversation

@drigz
Copy link
Collaborator

@drigz drigz commented Apr 19, 2016

If you drag a pants block over another block, then try to drag it left so that it's before the other block, the insertion marker won't move until you drag away and return. This is nothing severe but slightly clunky.

drag left broken
dragging left before the fix

The expected behaviour can be achieved by patching updatePreviews to recognise an insertion marker as invalid if localConnection has changed, not just if highlightedConnection has changed.

drag left fixed
dragging left after the fix

(the gifs were captured after rebasing onto bugfix/232 for clarity)

By recognising an insertion marker as invalid if localConnection has
changed, not just if highlightedConnection has changed.
// with Web Blockly the name "highlightedConnection" will still be used.
if (Blockly.highlightedConnection_ &&
Blockly.highlightedConnection_ != closestConnection) {
(Blockly.highlightedConnection_ != closestConnection ||

This comment was marked as abuse.

This comment was marked as abuse.

@rachel-fenichel
Copy link
Collaborator

Nice catch.

@drigz drigz merged commit 4564af4 into scratchfoundation:develop Apr 20, 2016
thisandagain pushed a commit that referenced this pull request May 17, 2016
Fix scrollbar visibility when horizontal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants