1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Don't set text scale to fractional values in touch-screen-pinch

* lisp/touch-screen.el (touch-screen-pinch): Take floor of
computed scale.
This commit is contained in:
Po Lu 2024-05-30 21:31:18 +08:00
parent 1fdf0f68cc
commit 1ebb9cb93b

View File

@ -937,8 +937,8 @@ text scale by the ratio therein."
(aset touch-screen-aux-tool 7
current-scale)))
;; Set the text scale.
(text-scale-set (+ start-scale
(round (log scale text-scale-mode-step))))
(text-scale-set (floor (+ (round (log scale text-scale-mode-step))
start-scale)))
;; Subsequently move the row which was at the centrum to its Y
;; position.
(if (and (not (eq current-scale