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:
parent
1fdf0f68cc
commit
1ebb9cb93b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue