void ContrastEditLayout::panActiveViewport(const vec2& delta) { Viewport* vp = this->getActiveViewport(); if (vp)// && vp->name != Viewport::CONTRAST_EDITOR) vp->camera->pan(delta.x * vp->getAspect(), delta.y); }
void FourViewLayout::panActiveViewport(const vec2& delta) { Viewport* vp = this->getActiveViewport(); if (vp) vp->camera->pan(delta.x * vp->getAspect(), delta.y); }