2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
924 B

  1. //
  2. // SCLongPressGestureRecognizer.h
  3. // SCCamera
  4. //
  5. // Created by Pavlo Antonenko on 4/28/15.
  6. // Copyright (c) 2015 Snapchat, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. // gesture recognizer cancels, if user moved finger more then defined value, even if long press started, unlike
  10. // UILongPressGestureRecognizer. But if user haven't moved finger for defined time, unlimited movement is allowed.
  11. @interface SCLongPressGestureRecognizer : UILongPressGestureRecognizer
  12. @property (nonatomic, assign) CGFloat allowableMovementAfterBegan;
  13. @property (nonatomic, assign) CGFloat timeBeforeUnlimitedMovementAllowed;
  14. @property (nonatomic, assign, readonly) CGFloat forceOfAllTouches;
  15. @property (nonatomic, assign, readonly) CGFloat maximumPossibleForceOfAllTouches;
  16. @property (nonatomic, strong) NSDictionary *userInfo;
  17. @property (nonatomic, assign) BOOL failedByMovement;
  18. - (BOOL)isUnlimitedMovementAllowed;
  19. @end