Change Time on Long press - 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: Change Time on Long press

Change Time on Long press 5 years 5 months ago #2970

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
hi!
i want to know how i can change time of Long press (for selecting text in PDF)

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

Change Time on Long press 5 years 5 months ago #2973

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 847
  • Karma: 43
  • Thank you received: 12
it is placed in PDFView.m:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
                else if( touch.timestamp - m_tstamp_tap > 1 )//1 second
                {
                    dx = point.x * m_scale - m_tx;
                    dy = point.y * m_scale - m_ty;
                    if( dx < 10 && dx > -10 && dy < 10 && dy > -10 )
                    {
                        m_status = sta_none;
                        if( m_delegate )
                            [m_delegate OnLongPressed:point.x * m_scale :point.y * m_scale];
                    }
                }
The following user(s) said Thank You: patel_patel_patel

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

  • Page:
  • 1
Powered by Kunena Forum