Pārlūkot izejas kodu

remove Long Press gesture from images and pdf view

Marino Faggiana 7 gadi atpakaļ
vecāks
revīzija
0cd7abf6b5

+ 0 - 4
iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m

@@ -191,10 +191,6 @@ static void * MWVideoPlayerObservation = &MWVideoPlayerObservation;
         [self.view addGestureRecognizer:swipeGesture];
         [self.view addGestureRecognizer:swipeGesture];
     }
     }
     
     
-    // Long Press
-    UILongPressGestureRecognizer* longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(actionButtonPressed:)];
-    [self.view addGestureRecognizer:longPressRecognizer];
-    
 	// Super
 	// Super
     [super viewDidLoad];
     [super viewDidLoad];
 }
 }

+ 0 - 1
iOSClient/Library/VFR Pdf Reader/Sources/ReaderViewController.h

@@ -37,7 +37,6 @@
 
 
 //TWS
 //TWS
 - (void)handleSingleTapReader;
 - (void)handleSingleTapReader;
-- (void)handleLongTappReader;
 - (void)handleSwipeUpDown;
 - (void)handleSwipeUpDown;
 
 
 @end
 @end

+ 0 - 11
iOSClient/Library/VFR Pdf Reader/Sources/ReaderViewController.m

@@ -383,10 +383,6 @@
     swipeUpDown.direction = UISwipeGestureRecognizerDirectionDown | UISwipeGestureRecognizerDirectionUp;
     swipeUpDown.direction = UISwipeGestureRecognizerDirectionDown | UISwipeGestureRecognizerDirectionUp;
     [self.view addGestureRecognizer:swipeUpDown];
     [self.view addGestureRecognizer:swipeUpDown];
 
 
-    // TWS Long Press
-    UILongPressGestureRecognizer* longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongTap:)];
-    [self.view addGestureRecognizer:longPressRecognizer];
-
 	[singleTapOne requireGestureRecognizerToFail:doubleTapOne]; // Single tap requires double tap to fail
 	[singleTapOne requireGestureRecognizerToFail:doubleTapOne]; // Single tap requires double tap to fail
 
 
 	contentViews = [NSMutableDictionary new]; lastHideTime = [NSDate date];
 	contentViews = [NSMutableDictionary new]; lastHideTime = [NSDate date];
@@ -705,13 +701,6 @@
 	}
 	}
 }
 }
 
 
-- (void)handleLongTap:(UITapGestureRecognizer *)recognizer
-{
-    //TWS
-    if ([self.delegate respondsToSelector:@selector(handleLongTappReader)])
-        [self.delegate handleLongTappReader];
-}
-
 - (void)handleSwipeUpDown:(UITapGestureRecognizer *)recognizer
 - (void)handleSwipeUpDown:(UITapGestureRecognizer *)recognizer
 {
 {
     //TWS
     //TWS

+ 0 - 5
iOSClient/Main/CCDetail.m

@@ -849,11 +849,6 @@
     [self.readerPDFViewController updateContentViews];
     [self.readerPDFViewController updateContentViews];
 }
 }
 
 
-- (void)handleLongTappReader
-{
-    [self actionButtonPressed:nil];
-}
-
 - (void)handleSwipeUpDown
 - (void)handleSwipeUpDown
 {
 {
     [self removeAllView];
     [self removeAllView];