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

177
Views
Disable pinch zoom in nextjs projects for IOS with javaScript

I want to disable pinch-zoom in my next js project. So I did this in my _app.tsx file

   <Fragment>
          <Head>
            <meta
              name="viewport"
              content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
            />
          </Head>
          <Component {...pageProps} />
        </Fragment>

And I think this isn't enough for the IOS. I tried to find a solution from google and tried this too.

body {
  touch-action: pan-x pan-y;
}

This also seems not working. Then I found this Stackoverflow answer This added a global even listener. Where can I add such a global event listener in a nextjs project?

about 4 years ago · Juan Pablo Isaza
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!