Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
iPadOS 15 Safari on.('touchend') issues

In a PWA coded for Safari in iPadOS 14 I'm using a simple listener for showing a popup when clicking on a button. While this was working well including iPadOS 14.6, the same code isn't in iPadOS 15.0.

The listener "touchend" caused the popup showing only for a microsecond and closing it again. The same action works just fine when using the listener "click" only. But the action "touchend" is much more intuitive.

$('.popup').on('touchend click', function(e) {
    e.preventDefault();
    $('#popup-content').toggleClass('d-flex d-none');
});

Also when touching any button for >0.5s, an empty small window (the callout) is shown. In iPadOS 14 this behavior could be prevented by simple CSS:

-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;

How to prevent both behavior in the latest iPadOS 15?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The simple solution I found is to add a "touchstart" listener with a preventDefault() to the same button:

$('.popup').on('touchstart', function(e) {
    e.preventDefault();
});

Both actions behave the same as in iPadOS 14 again.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!