Dialpad digits now register on touch devices

Fixkamo-internal
ส่งแล้ว
26 เมษายน 2569 เวลา 21:04 UTC
ผู้เขียน
kamo
ตั้งค่า
8395893

The dialpad buttons called e.preventDefault() in both onTouchStart and onTouchEnd. That stops the browser from firing the synthetic click event that follows a touch — so onClick={handleDialpadClick} never ran on tablets, and tapping a key never appended the digit to the dial display. Mouse path was unaffected because mouse events don't go through that gate. Drop the preventDefault from onTouchStart/onTouchCancel, and on onTouchEnd keep preventDefault (to suppress iOS long-press selection) while explicitly invoking handleDialpadClick so the digit still lands.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์