Open makaip opened 8 months ago
Working on this now.
This task requires a big refactor of the events.js
file. Until then I'm going to create a new issue called events.js
refactor, and unassign myself
Refactor is complete. I looked into this a bit more and the main issue is that it only checks for nodule collision if the parent node block is already selected, effectively reducing the hitbox to only the areas over the parent node block.
Right now it's best not to make any more modifications since the deadline is tonight
We should probably increase the size of the hitboxes on the nodules like in Blender, where the hitbox extends beyond the bounds of the nodule. This would make it easier for users to drag nodules together, especially on small-screen devices. This can be edited in
events.js
at lines 1 through 45. I'm not sure how we will expand the hitbox, as the position of the next nodule in a list of nodules depends on the previous nodule.