google / google/codeworld

Dragging the if block produces weird results

Open
#337 0 comments 0 reactions 0 assignees View on GitHub
bug funblocks
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

![ifdrag](https://cloud.githubusercontent.com/assets/544744/18338675/9cf7c6ac-754f-11e6-93e4-e9fe95fc9942.png)

Grabbing the `if` block from the toolbox results in a noticeable delay. If the mouse is held still for the delay, all is well. If the mouse is moved during the delay, then the offsets of various shadow and connectors are incorrect by an amount roughly proportional to the mouse movement, as in the screen shot.

It's as if there's some very excessive computation that gets run when the block is grabbed; and furthermore, that the current mouse position is sometimes grabbed before that computation, and sometimes after, resulting in incorrect offsets for some components.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.