Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Single - Double Tapped Issue

More
IP: 192.168.0.71 8 years 8 months ago #12554 by tommaso
With Rdpdf lastest version (5.8.1)
single and double tap event return different position seems there is an issue with doubletap position.

- (void)OnSingleTapped:(float)x :(float)y
- (void)OnDoubleTapped:(float)x :(float)y
More
IP: 192.168.0.71 8 years 8 months ago #12567 by emanuele
Hi,

are you experiencing this issue on a particular device/simulator?
More
IP: 192.168.0.71 8 years 8 months ago #12568 by tommaso
Hi,
yes with different devices Ipad 2 , Ipad Mini2, Ipad Mini 3, Ipad Pro (no simulator)
Tks
More
IP: 192.168.0.71 8 years 8 months ago #12577 by emanuele
Hi,

in PDFView class, you can try to fix the OnDoubleTap implementation in this way:

replace:
Code:
if (m_delegate) { [m_delegate OnDoubleTapped:[touch locationInView:self.window].x :[touch locationInView:self.window].y]; }

with:
Code:
if (m_delegate) { CGPoint point= [touch locationInView:[touch view]]; point.x *= m_zoom; point.y *= m_zoom; [m_delegate OnDoubleTapped:point.x :point.y]; }

In this way the CGPoint is created using the correct container
More
IP: 192.168.0.71 8 years 8 months ago #12578 by tommaso
Hi Emanuele, Ok
Thank you for support
Time to create page: 0.422 seconds
Powered by Kunena Forum