I'm relatively new to web development and working on a web page where I've managed to disable zooming using the scroll wheel and ctrl + (+/-) keys. In Chrome, it works perfectly—no pinch zoom or anything. However, in Firefox, pinch zoom is still enabled. I've attempted various JavaScript solutions related to touch and gestures, but nothing has worked so far. Is this a browser problem, and how can I resolve it?
3 Answers
You can actually use a meta tag to help control zooming. Try adding this to the of your document: . Just be sure to check what each parameter does so you're aware of the implications for user experience.
Just a quick reminder: restricting zoom can alienate visually impaired users. Before implementing such changes, are there any alternative features you're adding to ensure accessibility for users with low vision? Just something to think about!
I get that you're trying to control the user experience, but you do realize that preventing zooming can be pretty harmful to accessibility, right? It's essential for people with visual impairments. Maybe think about why you want to restrict zooming in the first place. It usually doesn't have a very good reason behind it.
Totally agree! Instead of blocking zooming, consider making your site more adaptable for different users.

Yes! Just be cautious, as some browsers might interpret those parameters differently.