Initial implementation of cursor smoothing

This commit is contained in:
brunoherbelin
2020-09-13 22:02:49 +02:00
parent fa7257fe92
commit 5895e203ba
4 changed files with 24 additions and 6 deletions

View File

@@ -432,10 +432,10 @@ View::Cursor MixingView::grab (Source *s, glm::vec2 from, glm::vec2 to, std::pai
// compute delta translation
s->group(mode_)->translation_ = s->stored_status_->translation_ + gl_Position_to - gl_Position_from;
// diagonal translation with SHIFT
if (UserInterface::manager().shiftModifier()) {
}
// // diagonal translation with SHIFT
// if (UserInterface::manager().shiftModifier()) {
// s->group(mode_)->translation_.y = s->group(mode_)->translation_.x * s->stored_status_->translation_.y / s->stored_status_->translation_.x;
// }
// request update
s->touch();