Mouse events in PathfindingJS