How to make UI consume touch input?

I have a simple camera yaw and pitch around an object, with a UI to configure variant sets on the object. this works fine on mouse, but using touchscreen causes the camera to jump when I touch the screen to move again after tapping the UI buttons. I’ve tried using the set input mode nodes but had no success. any ideas?