Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/workspaces.cpp b/src/workspaces.cpp
- index 29580bc..97776be 100644
- --- a/src/workspaces.cpp
- +++ b/src/workspaces.cpp
- @@ -48,11 +48,13 @@ void Workspaces::update(double delta) {
- if(xInteract.hasActiveChanged()) {
- if(xInteract.isActive()) {
- - startYPos = refPos.y - getOrigin().y;
- + getTransform(&input, [this,refPos](vec3 pos, quat rot, vec3 scl) {
- + startYPos = refPos.y - pos.y;
- snapTween.t = 1;
- for(auto &cell : cells) {
- cell->capture = false;
- }
- + });
- } else {
- snapTween.start = refPos.y - startYPos;
- snapTween.end = std::round(refPos.y - startYPos);
Advertisement
Add Comment
Please, Sign In to add comment