ففي الإنزال بالكف أو بتفخيذ أو تبطين وجدت المباشرة بفرجه لا في فرج وكذا الانزال بعمل المرأتين فانها مباشرة فرج بفرج لا في فرج وفي الانزال بوطء ميتة أو بهيمة وجدت المباشرة بفرجه في فرج غير مشتهي عادة وفي الانزال بمس آدمي أو تقبيله وجدت المباشرة بغير فرجه في محل مشتهي
رد المحتار على الدر المختار لإبن عابدين كتاب الصوم باب ما يفسد الصوم وما لا يفسده
In ejaculation using someone’s palm or rubbing between thighs [tafkheedh] or on the belly [tabteen], the intimate contact is with his genitals not inside other genitals. And accordingly, ejaculation from what two women do; for indeed this is intimate contact of genitals with genitals, not inside genitals. In ejaculation from intercourse with a dead woman or an animal, the intimate contact is with his genitals inside genitals not normally desired. In ejaculation from touching a human or kissing them, intimate contact is something other than his genitals in a desired spot.
Ibn ‘Abidin, Radd Al-muhtar ‘ala Al-durr Al-mukhtar [Answer to the Perplexed over the Choicest Pearls], The book of fasting, Section: what annuls the fast and what does not annul it