Skip to content

Commit

Permalink
Fix #1999 'MoveMe' button in HelloUI moves erratically (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyang-msft committed Feb 18, 2017
1 parent ffe05fa commit ee41314
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Frameworks/UIKit/UIPanGestureRecognizer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
static const wchar_t* TAG = L"UIPanGestureRecognizer";

#define VELOCITY_THRESHOLD 50.0f
NSArray* curPanList = nil;

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

CGPoint pos = pointFromView(translation, viewAddr) - pointFromView(origin, viewAddr);

for (UIGestureRecognizer* curgesture in curPanList) {
((UIPanGestureRecognizer*)curgesture)->_priv->currentTranslation = pos;
}
_priv->currentTranslation = pos;
}

- (UIView*)_touchedView {
Expand Down

0 comments on commit ee41314

Please sign in to comment.