Is there any way to disable touchscreen when wacom stylus is in proximity.

I have a Cube convertible laptop that uses a 10 point multitouch panel with wacom support.

Using the stylus is nice under ubuntu, but unfortunately you cannot disable touch when sketching...

This causes errant inputs.

I can disable the touch panel using modprobe, but then you can't pinch to zoom or pan with finger gestures.

In windows 10 there is a setting that allows you to disable touch input when the stylus is in proximity,

Can this be done with wayland / Gnome?