Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Single - Double Tapped Issue 6 years 9 months ago #12554

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Single - Double Tapped Issue 6 years 9 months ago #12567

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

are you experiencing this issue on a particular device/simulator?

Please Log in or Create an account to join the conversation.

Single - Double Tapped Issue 6 years 9 months ago #12568

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi,
yes with different devices Ipad 2 , Ipad Mini2, Ipad Mini 3, Ipad Pro (no simulator)
Tks

Please Log in or Create an account to join the conversation.

Single - Double Tapped Issue 6 years 9 months ago #12577

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

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

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

with:
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
The following user(s) said Thank You: tommaso

Please Log in or Create an account to join the conversation.

Single - Double Tapped Issue 6 years 9 months ago #12578

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Hi Emanuele, Ok
Thank you for support

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum