- Posts: 16
- Thank you received: 0
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
IP: 192.168.0.71
8 years 8 months ago #12554
by tommaso
Single - Double Tapped Issue was created 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
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
IP: 192.168.0.71
8 years 8 months ago #12567
by emanuele
Replied by emanuele on topic Single - Double Tapped Issue
Hi,
are you experiencing this issue on a particular device/simulator?
are you experiencing this issue on a particular device/simulator?
IP: 192.168.0.71
8 years 8 months ago #12568
by tommaso
Replied by tommaso on topic Single - Double Tapped Issue
Hi,
yes with different devices Ipad 2 , Ipad Mini2, Ipad Mini 3, Ipad Pro (no simulator)
Tks
yes with different devices Ipad 2 , Ipad Mini2, Ipad Mini 3, Ipad Pro (no simulator)
Tks
IP: 192.168.0.71
8 years 8 months ago #12577
by emanuele
Replied by emanuele on topic Single - Double Tapped Issue
Hi,
in PDFView class, you can try to fix the OnDoubleTap implementation in this way:
replace:
with:
In this way the CGPoint is created using the correct container
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
IP: 192.168.0.71
8 years 8 months ago #12578
by tommaso
Replied by tommaso on topic Single - Double Tapped Issue
Hi Emanuele, Ok
Thank you for support
Thank you for support
Time to create page: 0.422 seconds