Fix Glitch Where Right-Click Interrupts Brush Stroke

I use a Wacom pen and when I press the right click button accidentally while drawing a stroke (which is easy to do depending on the angle I’m drawing) the entire brush stroke will disappear, and the right click menu will show. This is very annoying and seems like such a simple thing to disable right-clicking while drawing to prevent loss of work.

Remapping the Wacom pen is not a solution, as it’s set up how I prefer to use it with my programs.

Thank you for taking the time to read this!