"pointerup" event of pdf reader can not work in Zotero Beta 29?

57 views
Skip to first unread message

iseexuhs

unread,
Aug 8, 2023, 3:09:30 AMAug 8
to zotero-dev
Dear Zotero Team,

In beta 29, the " pointerup" event of pdf reader can't not work, some related features of my plugin fail.

currentReader._iframeWindow.addEventListener("pointerup",  ...);

iseexuhs

unread,
Aug 8, 2023, 3:19:42 AMAug 8
to zotero-dev
"pointerup" is used to capture the selected pdf text in my plugin. By testing, I found selecting pdf text can't trigger "pointerup" event now, but clicking the annotation item in left sidepane can.

iseexuhs

unread,
Aug 8, 2023, 4:58:01 AMAug 8
to zotero-dev
In beta 29, if I want to capture the selected text, what type of event should I add? 

I am reading the source codes, trying to figure it out. If anybody knows, welcome to share.

iseexuhs

unread,
Aug 8, 2023, 7:11:54 AMAug 8
to zotero-dev
I found a solution, although not perfect. 😊
Reply all
Reply to author
Forward
0 new messages