npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

capacitor-plugin-ios-doubletap-fix

v1.0.1

Published

Capacitor plugin to disable iOS magnifier on double tap for Ionic Framework apps

Readme

Capacitor Plugin iOS Double Tap Fix

A production-ready Capacitor plugin to disable the iOS magnifier that appears on double-tap gestures in Ionic Framework applications running on iOS 15+ and newer versions.

Problem

On newer iOS versions (iOS 15+), double-tapping anywhere in a Capacitor/Ionic webview triggers a blue magnifier loupe, which interferes with the user experience in mobile applications.

Solution

This plugin automatically disables the iOS text selection magnifier using multiple proven techniques:

  • iOS 15+ Text Interaction API: Disables isTextInteractionEnabled for WKWebView
  • Gesture Removal: Removes system double-tap gesture recognizers from webview subviews
  • Zoom Prevention: Disables all zoom capabilities in the scroll view
  • CSS/JS Injection: Comprehensive prevention through stylesheet and event handling

Installation

# Install from NPM
npm install capacitor-plugin-ios-doubletap-fix

# Sync with iOS
npx cap sync ios

# Build your iOS app
npx cap run ios

Usage

Automatic Mode

The plugin works automatically once installed. No additional JavaScript code is required.

// The plugin automatically enables the fix when your app starts
// No additional code needed!

Manual Control (Optional)

import { DoubleTapFix } from 'capacitor-plugin-ios-doubletap-fix';

// Enable the fix manually
await DoubleTapFix.enable();

// Disable the fix
await DoubleTapFix.disable();

// Check if enabled
const { enabled } = await DoubleTapFix.isEnabled();

How It Works

  1. Text Interaction Disable (iOS 15+): Uses Apple's official isTextInteractionEnabled = false API
  2. Gesture Recognizer Removal: Removes double-tap gesture recognizers from all webview subviews
  3. Scroll View Configuration: Disables zoom, pinch, and multi-touch capabilities
  4. CSS/JavaScript Prevention: Injects comprehensive styles and event handlers

Compatibility

  • iOS 15.0+ (Primary target with isTextInteractionEnabled)
  • iOS 13.0-14.x (Fallback with gesture removal and CSS/JS)
  • Capacitor 7.0+
  • Ionic Framework (all versions with Capacitor)
  • Swift 5.1+

Production Ready

This plugin is designed for production use with:

  • No debug alerts or console logs
  • Minimal performance impact
  • Error-safe implementation
  • Comprehensive coverage of magnifier triggers

File Structure

capacitor-plugin-ios-doubletap-fix/
├── package.json
├── tsconfig.json  
├── rollup.config.js
├── CapacitorPluginIosDoubletapFix.podspec
├── README.md
├── src/
│   ├── index.ts
│   ├── definitions.ts
│   └── web.ts
└── ios/
    └── Sources/
        └── DoubleTapFixPlugin/
            ├── DoubleTapFixPlugin.swift
            └── DoubleTapFixPlugin.m

Troubleshooting

Plugin not working

  1. Ensure iOS platform is added: npx cap add ios
  2. Force sync: npx cap sync ios --force
  3. Clean build: npx cap clean ios && npx cap sync ios

Still seeing magnifier

  1. Test on real iOS device (simulator behavior differs)
  2. Ensure iOS 15+ for full effectiveness
  3. Check for conflicting CSS or JavaScript in your app

Development

To modify the plugin:

  1. Update Swift files in ios/Sources/DoubleTapFixPlugin/
  2. Update TypeScript definitions in src/
  3. Test with npx cap sync ios && npx cap run ios

License

MIT License

Credits

Based on research from Stack Overflow community solutions and Apple's iOS 15+ text interaction APIs.