Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

左右区域的同步滚动在Markdown中有多张图片时严重错位 #56

Closed
AlloVince opened this issue Mar 24, 2015 · 8 comments
Closed

Comments

@AlloVince
Copy link

当Markdown中插入很多图片后,Prevew区域的滚动应该按内容确定位置而不是百分比
可以参考 https://stackedit.io/editor 的实现

@pandao
Copy link
Owner

pandao commented Mar 24, 2015

@AlloVince 嗯,Editor.md 目前是按百分比来同步左右滚动条的滚动,我觉得这种方式也不失合理。

@AlloVince
Copy link
Author

呃,当图多时右边的预览还是挺痛苦的,可以对比一下

https://stackedit.io/viewer#!provider=gist&gistId=994de00e47b0c19f2a72&filename=AlloVince
点击右上角编辑icon可以看效果

@pandao
Copy link
Owner

pandao commented Mar 24, 2015

有看了一下,Stackedit.io 也是不能很好地按内容来确定位置的。

@AlloVince
Copy link
Author

他应该是根据title来做大的定位,会稍微好一点

@AlloVince
Copy link
Author

或者说提供一个能取消同步滚动的接口,这样我可以自己调整右边的滚动条,否则左边稍微碰一下右边又要重新找位置,很痛苦

@pandao
Copy link
Owner

pandao commented Mar 24, 2015

嗯,有可能,它Heading部分的定位会比较准。目前是没有这样的配置项(关掉同步滚动),新版本会考虑增加这样的配置项。

@pandao pandao closed this as completed Mar 29, 2015
@pandao
Copy link
Owner

pandao commented Apr 7, 2015

Update @v1.4.1 : Added syncScrolling option, Default value is true.

@zhiquan-yu
Copy link

@pandao 请问现在同步滚动的这个问题有什么好的解决方案吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants