Enable action after mouse moved x pixels

so i know the mouse gesture has the pre configured right click for drawing, but it also has a very unique condition for triggering only after mouse moved x px. i think this is very useful if i could use this for other mouse buttons to trigger different actions.

how can i achieve this?