Ultra-Slim-Bluetooth-Keyboard-with-Trackpad

How to Disable Pinch to Zoom on Windows in Chrome

So I bought this GMYLE keyboard and trackpad combination recently. It’s a nice little device. Lightweight, with a really great typing experience (if you hands aren’t too large). The trackpad is no Apple trackpad, but it’s a pretty decent experience.

Like most trackpads on Windows, it suffers from one major downfall: it often interprets my 2-finger scrolling as a pinch to zoom (or zoom-out). This is super annoying, constantly having to reset to 100% in Chrome. It was such a problem that I was ready to either beat the device against a rock, or return it.

On most laptops you can go to the trackpad settings (like those from Synaptics) in the mouse settings, and disable that particular gesture. But this keyboard doesn’t have any unique drivers. It just uses Microsoft’s built-in HID bluetooth drivers. Unlike OSX, which has settings for all this stuff, Windows doesn’t include any settings of it’s own.

So after lots of research I finally found a solution. I’d passed this solution several times, assuming it only applied to ctrl+scroll wheel on a regular mouse. But it actually disables pinch-to-zoom as well. All you need to do is install the great little program AutoHotKey and put in this script:

; Chrome - disable ctrl+wheel to zoom & pinch to zoom

#IfWinActive ahk_class Chrome_WidgetWin_1
{
^WheelDown::return
^WheelUp::return
#MaxHotkeysPerInterval 1000
}

Once it’s running in AutoHotKey, it’ll disable pinch to zoom in Chrome! That’s all I needed it to disable, but it could be modified for other apps as well (like if you use a different browser).

Reverse scrolling (Australian style)

While you’re at it, you could add this script to the same AutoHotKey script file to reverse the 2 finger scroll direction. That is, if you prefer Apple’s “natural” orientation (called Australian by Google). Basically it matches the direction of scrolling on a touch-screen device. I prefer it. Credit How-To Geek for this one.

; Reverse Scrolling Script by How-To Geek

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

WheelUp::
Send {WheelDown}
Return

WheelDown::
Send {WheelUp}
Return

You’ll want to add AutoHotKey to your startup folder to make sure it runs these scripts automatically when Windows loads.

7 thoughts on “How to Disable Pinch to Zoom on Windows in Chrome”

  1. This is how I disabled pinch zoom in Asus Laptop Windows 10. I went to control panel, then on the bottom of list where it says ASUS Smart Gesture, then on the right side under two fingers, it says zoom, un check the box and approve then hit ok. and that should do t for you.

  2. Thank You I figured it out, In ASUS Laptops it in control panel then type in ASUS Smart Gesture and a window pops up, then uncheck pinch zoom.

  3. Hi,
    My problem is that I want to (NEED to) disable pinch-to-zoom generally, not just in a specific browser or other software. My Chinese 2 in 1 has a trackpad with integrated mouse buttons, which means that accidental zooming occurs all the time and affects everything, including icons on the desktop. It is driving me mad! The normal Win10 settings for gestures is not available and no other maker specific utility either.
    Can your script be modified to solve this problem?

    1. Hi!

      I think you just have to delete the Chrome part:

      ^WheelDown::return
      ^WheelUp::return
      #MaxHotkeysPerInterval 1000

      that should do it.

      @OP, thanks a lot for the solution, it’s the only one that worked for me! 😀

Leave a Reply

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

Notify me of follow-up comments via e-mail. Or subscribe me without commenting.