Wayland supports pointer gestures that would allow us to populate the "phase" attribute of events correctly for touchpad gestures - https://wayland.app/protocols/pointer-gestures-unstable-v1