Well, figured out another way to do it:
var dragobserver = new BABYLON.PointerDragBehavior();
dragobserver.onDragObservable.add((event)=>{
console.log("drag",meshid);
console.log(event);
})
mesh.addBehavior(dragobserver);