Open zjh0667 opened 8 years ago
@zjh0667 I have been unable to reproduce this, could you please provide clearer steps for reproducing the issue?
(void)viewDidLoad { [super viewDidLoad];
self.title = @"Large";
NSURL * url =[NSURL URLWithString:@"http://mp.weixin.qq.com/s?__biz=MzA3NzM0NzkxMQ==&mid=2655357958&idx=1&sn=2df64989123d851698c9e2dc1930a3d9&scene=2&srcid=0825reh8JJ1UpS4TIVNIkAj1&from=timeline&isappinstalled=0#wechat_redirect"];
NSString * html = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil]; html = [html stringByReplacingOccurrencesOfString:@"data-src" withString:@"src"];
[self setHTML:html];
}
Click the picture,it will scroll to top.
Looks like this is due to something in zss_editor.calculateEditorHeightWithCaretPosition = function() { } . I have commeted out the code inside the function and it works. Note : This might have knocked out something else but stops scrolling to top.
@pritamd20 I have commented out the code but it didn't work.The window still will scrolling to the top.If you did not open the keyboard, click the picture will scroll。
@zjh0667 I will have a closer look at this with the code that you have provided, hopefully will have a fix for you within the next few days.
@william205 Can you use WKWebView instead of UIWebView?
@zjh0667 That shouldn't solve this issue however it could still be a good idea to switch to WKWebView due to better performance. I will try to get this done next week along with some other bug fixes and new features/enhancements.
I also faced this issue, it happenes frequently and seems not easy to solve it
Anybody has ideas with this issue?
When the keyboard is closed, click the picture, the editor will automatically scroll to the top. When the keyboard is opened, click the picture, the editor will not scroll. How to let it not scroll?