Single - Double Tapped Issue - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Single - Double Tapped Issue

Single - Double Tapped Issue 1 year 4 months ago #12554

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • 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 1 year 4 months ago #12567

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
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 1 year 4 months ago #12568

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • 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 1 year 4 months ago #12577

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
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 1 year 4 months ago #12578

  • tommaso
  • tommaso's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • 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