Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
Sped up display for pages with many links.
Browse files Browse the repository at this point in the history
* lisp/pdf-links.el (pdf-links-hotspots-function): Directly use a default
  binding for any event but mouse-1.  Much faster then creating
  bindings by iterating over mouse-buttons.
  • Loading branch information
Andreas Politz committed Jan 6, 2015
1 parent 585202d commit 8e423bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/pdf-links.el
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ links via \\[pdf-links-isearch-link].
(lambda nil
(interactive "@")
(pdf-links-action-perform (cdr l))))
(pdf-util-image-map-divert-mouse-clicks id)))
(local-set-key
(vector id t)
'pdf-util-image-map-mouse-event-proxy)))
(nreverse hotspots)))

(defun pdf-links-action-to-string (action)
Expand Down

0 comments on commit 8e423bf

Please sign in to comment.