DWQA QuestionsCategory: ProgramWhy don't you click input on the H5 page on the mobile phone?
xzzz asked 4 weeks ago

canvasThe animation has not finished loading, clickinputCan pop up the keyboard, etccanvasAfter it’s fully loaded, you can’t click. It’s not good to write about touch events

$('#input').on('touchstart', function(){
    $(this).fouce()
})

What’s the reason? Thank you very much. T_T

kikong replied 4 weeks ago

Instead of using canvas animation, using div mask, combined with setTimeout function to simulate this process, see if it is triggered?

1 Answers
xzzz answered 4 weeks ago

It should be used$(this).focus()