Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ee41314

Browse files
committed
Fix #1999 'MoveMe' button in HelloUI moves erratically (#2001)
1 parent ffe05fa commit ee41314

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Frameworks/UIKit/UIPanGestureRecognizer.mm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
static const wchar_t* TAG = L"UIPanGestureRecognizer";
3838

3939
#define VELOCITY_THRESHOLD 50.0f
40-
NSArray* curPanList = nil;
4140

4241
@implementation UIPanGestureRecognizer {
4342
CGPoint _translation;
@@ -409,10 +408,7 @@ - (void)setTranslation:(CGPoint)translation inView:(id)viewAddr {
409408
const CGPoint origin = { 0, 0 };
410409

411410
CGPoint pos = pointFromView(translation, viewAddr) - pointFromView(origin, viewAddr);
412-
413-
for (UIGestureRecognizer* curgesture in curPanList) {
414-
((UIPanGestureRecognizer*)curgesture)->_priv->currentTranslation = pos;
415-
}
411+
_priv->currentTranslation = pos;
416412
}
417413

418414
- (UIView*)_touchedView {

0 commit comments

Comments
 (0)