DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk4 min

Puppeteer Mouse Wheel Options Explained: deltaX, deltaY, and Scrolling

Puppeteer’s wheel method sends synthetic input, not a guaranteed scroll. Learn the delta options, pointer placement, verification, and common failure causes.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

page.mouse.wheel() sends synthetic wheel input; it does not guarantee that a page will scroll. Its documented options are the optional numeric values deltaX and deltaY. To target a particular element, move the pointer over it first, then send the wheel input and check the page’s scroll position if you need to confirm that content moved.

What page.mouse.wheel() does

Puppeteer documents the method as Mouse.wheel(options?: Readonly<MouseWheelOptions>): Promise<void>. It dispatches a mousewheel event; the method’s completion is not evidence that the page scrolled. The API reference is labeled Puppeteer 25.12.0, accessed October 3, 2026 (Puppeteer Mouse.wheel()).

As an Amazon Associate I earn from qualifying purchases.

Each page exposes a mouse at page.mouse. Puppeteer’s mouse coordinates are main-frame CSS pixels measured from the viewport’s top-left corner. Its mouse events are synthetic and do not fully reproduce normal hardware mouse behavior (Puppeteer Mouse class).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the wheel options mean

Option Documented type Practical use
deltaX Optional number Horizontal wheel input.
deltaY Optional number Vertical wheel input.

The Puppeteer 25.3.0 interface reference lists these names, types, and optional status, but does not specify property descriptions or default values. Treat positive and negative values as wheel-input deltas, not as a reliable measurement or prediction of content movement. In common browser usage, positive deltaY is often used to request downward wheel input and negative values upward input, but page handlers can change the result (Puppeteer MouseWheelOptions).

#1 Best Overall
Sale
Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse - Swift Grey
  • Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
  • Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
  • Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
  • Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
  • Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)

How to send wheel input over an element

This runnable example uses the browser page in an existing Puppeteer script. It moves the pointer to the center of the first matching div, then sends vertical wheel input, following Puppeteer’s documented example pattern.

const elem = await page.$('div');
if (!elem) throw new Error('No matching div found');

const box = await elem.boundingBox();
if (!box) throw new Error('The element has no visible bounding box');

await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);
await page.mouse.wheel({ deltaY: -100 });

The example’s negative deltaY is used for a zoom demonstration in the API reference; it does not establish a universal scroll-distance mapping. The target element, page code, browser behavior, and whether input is canceled all affect what happens.

Rank #2
Sale
Logitech G305 Lightspeed Wireless Gaming Mouse - Black | 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery, On-Board Memory, Compatible with PC and Mac
  • The next-generation optical HERO sensor delivers incredible performance and up to 10x the power efficiency over previous generations, with 400 IPS precision and up to 12,000 DPI sensitivity
  • Ultra-fast LIGHTSPEED wireless technology gives you a lag-free gaming experience, delivering incredible responsiveness and reliability with 1 ms report rate for competition-level performance
  • G305 wireless mouse boasts an incredible 250 hours of continuous gameplay on just 1 AA battery; switch to Endurance mode via Logitech G HUB software and extend battery life up to 9 months
  • Wireless does not have to mean heavy, G305 lightweight mouse provides high maneuverability coming in at only 3.4 oz thanks to efficient lightweight mechanical design and ultra-efficient battery usage
  • The durable, compact design with built-in nano receiver storage makes G305 not just a great portable desktop mouse, but also a great laptop travel companion, use with a gaming laptop and play anywhere

Horizontal or vertical input

Use deltaX for horizontal wheel input and deltaY for vertical wheel input. To request both components in one call, supply both numeric properties. The interface reference does not document defaults, so specify the values your test needs rather than depending on an assumed omitted-property value.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Pointer placement matters

Wheel input is delivered in the context of the pointer position. If a scrollable panel, canvas, or zoomable region should receive it, move over that region before calling wheel(). Puppeteer’s documented example obtains an element’s bounding box and moves to its center first.

Rank #3
Sale
Logitech M185 Compact Ambidextrous Wireless Mouse with Rubber Grips - Blue
  • Compact Mouse: With a comfortable and contoured shape, this Logitech ambidextrous wireless mouse feels great in either right or left hand and is far superior to a touchpad
  • Durable and Reliable: This USB wireless mouse features a line-by-line scroll wheel, up to 1 year of battery life (2) thanks to a smart sleep mode function, and comes with the included AA battery
  • Universal Compatibility: Your Logitech mouse works with your Windows PC, Mac, or laptop, so no matter what type of computer you own today or buy tomorrow your mouse will be compatible
  • Plug and Play Simplicity: Just plug in the tiny nano USB receiver and start working in seconds with a strong, reliable connection to your wireless computer mouse up to 33 feet / 10 m (5)
  • Better than touchpad: Get more done by adding M185 to your laptop; according to a recent study, laptop users who chose this mouse over a touchpad were 50% more productive (3) and worked 30% faster (4)

How to verify that content actually moved

A wheel event and a scroll event are different. A wheel can occur without scrolling—for example, over an unscrollable area or when a page uses wheel input for zoom. Scrolling can also happen without a wheel event, such as through keyboard input or JavaScript. MDN advises checking scrollLeft or scrollTop during a scroll event when you need the resulting content movement or direction (MDN: Element: wheel event).

const before = await page.evaluate(() => window.scrollY);

await page.mouse.move(400, 300);
await page.mouse.wheel({ deltaY: 300 });

await page.waitForFunction(
  previous => window.scrollY !== previous,
  { timeout: 2000 },
  before
).catch(() => {});

const after = await page.evaluate(() => window.scrollY);
console.log({ before, after, moved: after !== before });

This checks the main document’s vertical position. For a nested scroll container, measure that element’s scrollTop instead. Waiting for a position change is useful in a test, but a timeout should be interpreted as “no observed change within this interval,” not proof that the wheel event was never dispatched.

Rank #4
Amazon Basics 3-Button USB Wired Mouse with Responsive Tracking, Plug & Play, Compatible with Windows and Mac, Black
  • Computer mouse for easily navigating a computer interface; click, scroll, and more
  • USB-A wired connection; if existing device only supports USB-C, an additional adapter will be required
  • High-definition (1000 dpi) optical tracking ensures responsive cursor control for precise tracking and easy text selection
  • 3 buttons offer effortless fingertip control
  • Plug-and-go ready for instant use

Why a wheel call may not scroll

  • The pointer is over the wrong region: move it over the intended scroll container or zoom target before sending input.
  • There is nothing to scroll: the document or hovered element may not overflow in the requested direction.
  • The page handles wheel input differently: a handler may implement zoom, custom movement, or other behavior rather than ordinary scrolling.
  • The event is canceled: a canceled wheel event does not cause the browser’s default scrolling or zooming action. MDN notes that cancelability can vary across a sequence in some browsers; passive listeners can also affect whether the browser waits for handlers (MDN: Element: wheel event).
  • You are checking the wrong signal: observe the relevant element’s scrollTop or scrollLeft, rather than assuming the delta or a dispatched wheel event proves movement.

Or skip the browser setup

For a screenshot rather than an interaction test, ScreenshotNeo can return a website screenshot or PDF through one GET request. Its API does not replace Puppeteer for testing wheel behavior, but can avoid setting up a browser when the goal is to capture a page. Cookie banners, popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed. An MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Sign up for 1,000 free screenshots a month, with no card required.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does page.mouse.wheel() return the amount scrolled?

No. It returns a promise for completion of the input operation, not a scroll distance. Read the relevant scroll position to determine whether content moved.

Best Value
Sale
Acer Wireless Mouse for Laptop, 2.4GHz Computer Mouse 3 Adjustable 1600 DPI
  • 【Plug and Play for Home/Office/School】The wireless computer mouse features 2.4GHz connectivity, delivering a stable, interference-free connection up to 32ft. Designed for 𝐦𝐞𝐝𝐢𝐮𝐦 𝐭𝐨 𝐥𝐚𝐫𝐠𝐞 𝐬𝐢𝐳𝐞𝐝 𝐡𝐚𝐧𝐝𝐬, it ensures comfortable use all day. Simply plug in the USB-A receiver for instant pairing—no drivers needed. 📌📌 If the mouse isn’t suitable, place the USB receiver in the battery compartment and return both.
  • 【3 Levels Adjustable DPI】This travel USB mouse offers 3 adjustable DPI settings (800, 1200, 1600), allowing you to customize sensitivity for precise design work. Effortlessly switch to match your task and elevate your productivity. 📌 Please remove the film at the bottom of the mouse before use.
  • 【Effortless Browsing】Equipped with forward and backward buttons, this computer mice streamlines your workflow, making it easy to navigate through web pages and files with a simple click. 📌Side button does not work on Mac.
  • 【Visible Indicator Light】 The pc mouse features a visual indicator for DPI levels and low battery alerts. The red light flashes once for 800 DPI, twice for 1200 DPI, and three times for 1600 DPI. When the battery level is below 10%, the light flashes red until the mouse is completely out of power.
  • 【Click to Wake】With smart sleep mode, it saves power by standby after 10 inactive minutes, just 2-3 clicks to wake. This efficient design delivers 3x longer battery life than motion-wake mice. Engineered for durability, its buttons and scroll wheel are tested for 10 million clicks, ensuring long-term reliability and consistent performance.

Can a wheel event happen without a scroll event?

Yes. Wheel input may be used for zoom, occur over an unscrollable area, or be canceled instead of producing scrolling.

Quick Recap

SaleBestseller No. 1
Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse - Swift Grey
Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse - Swift Grey
Product carbon footprint: 3.97 kg CO2e; Contoured shape: Gives you more comfort and control
$14.85
SaleBestseller No. 3
Bestseller No. 4
Amazon Basics 3-Button USB Wired Mouse with Responsive Tracking, Plug & Play, Compatible with Windows and Mac, Black
Amazon Basics 3-Button USB Wired Mouse with Responsive Tracking, Plug & Play, Compatible with Windows and Mac, Black
Computer mouse for easily navigating a computer interface; click, scroll, and more; 3 buttons offer effortless fingertip control
$9.70

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.