Closed ChristopherChudzicki closed 8 years ago
@bradenmacdonald @dseaton @antoviaque This bug only seems to happen if the board is empty.
In other words, if there is a vector pre-drawn on the board, or you have already added a vector using "add vector" button, then click to draw functions as expected.
This bug also seems to be present in recent (but not old) versions of JS-Input vector draw. [It is not visible in the demo problems in Notes_and_examples
because all those problems <script type="text/javascript" src="/c4x/DavidsonNext/Ann101/asset/vectordraw.js"></script>
, which is presumably an older version of vector draw.)
@antoviaque @bradenmacdonald @dseaton Found the bug and fixed it in the JS-Input version (which I'm currently working with). See pull request. I'm not going to touch the X-Block, though, since I don't know how to test changes.
Thanks for finding that fix, @ChristopherChudzicki :) We will likely be starting our work on this next week.
@bradenmacdonald I realized today that @smarnach found it a long time ago, but it never got pulled :( . https://github.com/open-craft/jsinput-vectordraw/pull/24
@ChristopherChudzicki Yeah, I saw that and made a note of it. Thanks. Not sure why it wasn't merged, but I've asked him about it.
@ChristopherChudzicki As I already replied on our internal tracker, I don't remember why I didn't merge it. It was never reviewed, and I probably just lost track of that PR.
This issue was fixed by #10 .
@ChristopherChudzicki FYI^^
Currently, in order to position a vector on board the user must:
In the JSinput version of VectorDraw, the user was able to simultaneously add and position a vector by clicking on the board and dragging mouse to place the vector tip. This method felt much more natural, much more like drawing.
This feature should be added to the X-Block version.