triggering 'mouseLeftUp' on the viewer

17 views
Skip to first unread message

Danny Mendel

unread,
Jun 20, 2016, 1:07:48 PM6/20/16
to PDFTron WebViewer
hi Matt,

for making an accurate sync display,
i will need to trigger  'mouseLeftUp' , don't care about the mouse coords, it can be anywhare, simulating clicking on coords 0,0 or middle screen.

i had some trouble to trigger this even,
can you show me the proper way to trigger manual 'mouseLeftUp' ?
many many thanks
Danny


Matt Parizeau

unread,
Jun 21, 2016, 3:32:59 PM6/21/16
to PDFTron WebViewer
Hi Danny,

What are you trying to achieve exactly? If you want to trigger the mouseLeftUp event on DocumentViewer you can just call:

docViewer.trigger('mouseLeftUp');

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages