[FIX]: delta starts from zero when you pan from visible state, so clamp it at that value when visible
[FIX]: when rotating, we have this lovely duplicate code, so this needed to change as well. Now, rotation works properly