Skip to content

plugins/shakecursor: Don't trigger for cursor pushback

Vlad Zahorodnii requested to merge work/zzag/shake-cursor-pushback into master

The shake detector is mistriggered by sporadic pointer movement when the cursor is pushed back by a screen edge.

As a way to prevent it, this change adds a bounding rectangle constraint. The cursor will move chaotically within a small bounding rectangle if it's pushed back. So it should be enough to just check the length of the diagonal.

Merge request reports

Loading