add this code to your builder:
_this.paperDrag.on('element:pointerup', this.addNode , this); _this.paperDrag.on('element:pointerdown', this.toolBoxPointerDown , this);
Some explanations: joint.dia.ElementView has a built-in pointer and pointer, the last line of code of these two functions makes the following notifications:
this.notify('element:pointerdown', evt, x, y);
and your paper.on('element:pointerdown') will be executed after this notification is accrued.
Shahar shukrani
source share