code: function (event) {
          if (this.selected) {
              // follow the pointer
              me.game.world.moveUp(this);
              this.pos.set(event.gameX, event.gameY, this.pos.z);
              this.pos.sub(this.grabOffset);
          }
      }
docs: pointermove function