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

pqtouch

v1.1.0

Published

touch support for javascript controls with virtual rendering. works by monkey patching jQueryUI mouse prototpye.

Readme

pqtouch

A lightweight JavaScript utility that adds robust touch support to jQuery UI components. It works seamlessly with standard rendering as well as complex modern controls utilizing virtual rendering (virtual scrolling/windowing).

Inspired by the classic jQuery UI Touch Punch by Dave Furfero, pqtouch bridges the gap for modern high-performance web applications where Touch Punch falls short due to virtualized DOM nodes.

Features

  • Universal Touch Support: Automatically maps touch events to mouse events (touchstartmousedown, touchmovemousemove, touchendmouseup).

  • Virtual Rendering Compatible: Designed specifically to handle modern grid systems, spreadsheets, and lists that dynamically create and destroy DOM elements during scroll or interaction.

  • Non-Intrusive Integration: Works under the hood by safely monkey-patching the core jQuery UI $.ui.mouse prototype.

  • Plug and Play: Zero configuration required; just include it after jQuery UI, and your widgets instantly become touch-ready.

Why pqtouch?

Traditional solutions like Touch Punch map events based on static DOM layouts. When dealing with modern, virtualization-heavy UI controls (where elements are dynamically rendered and recycled in the viewport), standard event translation often breaks down, drops tracking, or fails to target the correct virtual element.

pqtouch addresses this limitation by enhancing how the jQuery UI mouse prototype tracks interaction vectors, ensuring that virtualized elements respond perfectly to swipes, drags, and taps.

Installation

You can install pqtouch via npm or download it directly for browser usage.

npm install pqtouch

Usage

Browser (Script Tag)

Include pqtouch right after your jQuery and jQuery UI scripts.

<!-- Include jQuery and jQuery UI -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="path/to/jquery-ui.min.js"></script>

<!-- Include pqtouch to patch the mouse prototype -->
<script src="node_modules/pqtouch/pqtouch.js"></script>

<script>
  // Your jQuery UI controls (even those with virtual rendering) now support touch!
  $( "#draggable" ).draggable();
  $( "#selectable" ).selectable();
</script>

Module Bundlers (Webpack, Rollup, Vite)

If you are using a modern build system, simply import it after jQuery UI has been loaded.

import $ from 'jquery';
import 'jquery-ui-dist/jquery-ui';
import 'pqtouch'; // This applies the monkey-patch automatically

How It Works

pqtouch hooks into the internal mechanisms of $.ui.mouse._mouseInit. It intercepts the initialization of any widget inheriting from the mouse widget and attaches touch event listeners. When a touch gesture is detected, it synthesizes a corresponding native mouse event and dispatches it, ensuring the target calculations remain accurate even when the DOM updates underneath the touch pointer due to virtual rendering.

Credits

  • Inspired by the exceptional groundwork laid out by Dave Furfero in jQuery UI Touch Punch.

License

This project is open-source and available under the MIT License.