Fix pinch-to-scale on real X servers and NS
* lisp/face-remap.el (text-scale-pinch): Stop waiting for more events.
This commit is contained in:
parent
2e60ca3713
commit
e05512ba42
1 changed files with 0 additions and 9 deletions
|
|
@ -400,15 +400,6 @@ a top-level keymap, `text-scale-increase' or
|
|||
(interactive "e")
|
||||
(when (not (eq (event-basic-type event) 'pinch))
|
||||
(error "`text-scale-pinch' bound to bad event type"))
|
||||
(let ((evt))
|
||||
(catch 'done
|
||||
(while t
|
||||
(unless (and (setq evt (read-event nil nil 0.01))
|
||||
(eq (car evt) 'pinch))
|
||||
(throw 'done nil))))
|
||||
(when (and (consp evt)
|
||||
(eq (car evt) 'pinch))
|
||||
(setq event evt)))
|
||||
(let ((window (posn-window (nth 1 event)))
|
||||
(scale (nth 4 event))
|
||||
(dx (nth 2 event))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue