Ignore Trackpad pinch text scale in Emacs

One of the most annoying things when using emacs is laptop is text get scaled after my hand tap mistakenly in track-pad. Thanks to Shanecelis now i found the solution.

Source: Shane Celis: "2/ Despite being together for over two decades, w…" - Gamedev Mastodon

Unset pinch key suggested by Shane Celis doesn’t work for me, mapping C-Wheel key to ignore does works for me.

;; Laptop pinch annoyance

(global-unset-key (kbd "<pinch>"))
(global-set-key (kbd "<C-wheel-up>") 'ignore)
(global-set-key (kbd "<C-wheel-down>") 'ignore)
1 Like