https://github.com/jchip/smart-wheel-zoom
Smart handling of accidental zoom with Ctrl + mouse scroll wheel
https://github.com/jchip/smart-wheel-zoom
Last synced: 11 months ago
JSON representation
Smart handling of accidental zoom with Ctrl + mouse scroll wheel
- Host: GitHub
- URL: https://github.com/jchip/smart-wheel-zoom
- Owner: jchip
- Created: 2025-07-28T18:06:46.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T19:02:22.000Z (11 months ago)
- Last Synced: 2025-07-28T20:23:54.662Z (11 months ago)
- Language: JavaScript
- Size: 270 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Zoom Control
A Chrome extension that prevents accidental browser zooming caused by free-rolling mouse wheels and unintentional Ctrl+scroll combinations.
## The Problem
Modern mice with free-rolling wheels can cause frustrating accidental zooming when:
- The wheel continues spinning after you stop scrolling
- You accidentally press Ctrl while scrolling
- You press Ctrl after already starting to scroll
This extension solves these issues with intelligent timing-based logic.
## Features
- **Smart Timing Detection**: Only allows zoom when Ctrl is pressed BEFORE any wheel activity starts
- **Accidental Zoom Prevention**: Blocks zoom attempts when Ctrl is pressed during or after scrolling
- **Smooth Scroll Fallback**: Converts blocked zoom attempts into smooth scrolling
- **Rate Limiting**: Prevents rapid zoom actions that could be disorienting
## Logic Flow
- User presses Ctrl → Wheel activity starts → ✅ Intentional zoom (allowed)
- User scrolls → Presses Ctrl during scroll → ❌ Accidental zoom (blocked, scroll instead)
- User releases Ctrl → Quick press during wheel → ❌ Spam protection (ignored)
## Privacy Policy
This extension does not collect any user data.