Skip to content

Commit 8fe019e

Browse files
guangyaoguangyao
authored andcommitted
优化收缩大图显示效果
1 parent 200609f commit 8fe019e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ios/RCTAuroraIMUI/DWCustomView/DWOrigScorllView.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,10 @@ - (void)clickTapGest{
195195
NSMutableDictionary *tmpDict = self.imgArr[showIndex];
196196
NSString *strRect = [tmpDict objectForKey:@"rect"];
197197
NSNumber *isEditNum = [tmpDict objectForKey:@"isEdit"];
198-
if (strRect.length) {
198+
if ((strRect.length)&& (!isEditNum.boolValue)) {
199199
CGRect rect = CGRectFromString(strRect);
200200
CGFloat scale = rect.size.width/screenW;
201201
CGFloat tmpY = rect.origin.y - (screenH * scale - rect.size.height)*0.5;
202-
if (isEditNum.boolValue) {
203-
tmpY += 240;
204-
}
205202
if ((tmpY > screenH) || (tmpY+rect.size.height <0)) {
206203
[UIView animateWithDuration:0.3 animations:^{
207204
self.alpha = 0;

ios/RCTAuroraIMUI/RCTMessageListView.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ - (void)clickShowOrigImgView:(NSNotification *)noti{
407407
break;
408408
}
409409
}
410-
411410
}
412411
if (imgIndex > 0) {
413412
UIWindow *win = [UIApplication sharedApplication].keyWindow;

0 commit comments

Comments
 (0)