mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: ignore warps on modes and shake
This commit is contained in:
parent
553dc93cc0
commit
55e8b316ce
14 changed files with 80 additions and 9 deletions
|
@ -111,3 +111,10 @@ double CShake::update(Vector2D pos) {
|
|||
|
||||
return this->zoom.value();
|
||||
}
|
||||
|
||||
void CShake::warp(Vector2D old, Vector2D pos) {
|
||||
auto delta = pos - old;
|
||||
|
||||
for (auto& sample : samples)
|
||||
sample += delta;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue