Internal document links don't work on Windows tablet when tapped with finger


A PDF document with internal document links to locations within the same document works as expected when the link is activated with a mouse click.  However, using a Surface Pro tablet (or a laptop with touchscreen), the links do not work when tapped with a finger.  The document will scroll slightly, but it does not jump to the destination.

I implemented the HyperlinkPointerPressed event handler and both mouse clicks and finger taps are reported.  In fact, the args for both events are essentially identical and it is not obvious to me that one is different than the other, however the sfPdfViewer code must be handling these differently.

I have reproduced this with both the Syncfusion Essential Studio UWP demo application and my own test code.



3 Replies

JP Jhansi Priya Ramesh Syncfusion Team February 17, 2020 06:58 AM UTC

Hi John, 
 
Thank you for contacting Syncfusion support. 
 
We were able to reproduce the reported issue “Navigation of document links is not working while using finger touch or stylus” and suspect that this to be a defect. Currently, we are validating the same and will update the further details on 19th February 2020.   
 
Regards, 
Jhansi Priya Ramesh 



JB John Barrett February 17, 2020 08:48 PM UTC



After some additional debugging, I was able to put a work-around in place. I'm sharing with the hope that it will help isolate the fault.

Using the sample UWP application, I added two lines to the PdfViewer_HyperlinkPointerPressed event handler, which now reads:

        private void PdfViewer_HyperlinkPointerPressed(object sender, HyperlinkEventArgs e)
        {
            string uri = e.URI;
            int pageIndex = e.PageIndex;
            RectangleF rect = e.Bounds;
            pdfViewer.GotoPage(e.DestinationPageIndex + 1); //jjb  TODO: Make sure destination page is valid
            e.Handled = true; //jjb
        }

I would prefer that the library worked as expected, however.


JP Jhansi Priya Ramesh Syncfusion Team February 18, 2020 12:55 PM UTC

Hi John, 
 
Thank you for the update.  
 
We confirm that the issue “Navigation of document links is not working while using finger touch or stylus” is a bug and we will include the fix for this issue in our 2020 volume 1 main release which is expected to be available in March 2020. 
 
 
Regards, 
Jhansi Priya Ramesh 


Loader.
Up arrow icon