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

TOPIC:

Change Time on Long press 10 years 9 months ago #2970

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 10 years 9 months ago #2973

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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