Your 2-finger touch gesture is probably automatically translated to mouse wheel events and these events are used to zoom in yEd. yEd is simply not designed to be used on a touch device. There are lots of keyboard shortcuts, modifier keys for mouse interaction, different behaviors for left and right mouse button, etc. All that does not translate well to touch devices.