Mobile Touch Doesn't Work. Why?

Discussion in 'JavaScript' started by SoftLink, Nov 4, 2021.

  1. #1
    My app does its best to accomodate mobile phones.
    It depends on the phone's browser.

    I'm noticing that touch events, mostly touchstart and touchmove do not fire reliably.
    I'm having to strip out anything that involves touch events for mobile applications.

    I'd like to find a way to rectify this problem.
    I'm wondering if anyone else is experiencing this.
    I'm mostly testing Google Chrome for Android.

    How can I make touch events fire reliably on mobile phones in the Web browser.
     
    SoftLink, Nov 4, 2021 IP
  2. Amony11

    Amony11 Member

    Messages:
    24
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #2
    When a touch screen stops working after a phone is dropped it's sometimes due to the digitizer connection coming loose internally. In that case, gently tapping on each corner of the phone may cause it to reconnect. If that doesn't work, fixing the digitizer requires taking the phone apart.
     
    Amony11, Nov 8, 2021 IP
  3. SoftLink

    SoftLink Active Member

    Messages:
    140
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks. It's an html thing though, a software problem. It was consistent on any phone I used. All of them used Google Chrome though.
    I started using pointermove instead and I added a style change: touch-action: 'none' to stop it from moving the browser screen around.
    It works fine now.
     
    SoftLink, Nov 8, 2021 IP