cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

[Feature report]什么时候能兼容一下手机端?

Open jackrebel opened this issue 2 years ago • 4 comments

Clear and concise description of the problem

现在使用手机端打开, 很多自带的工具菜单都不正常. 什么时候能兼容一下手机端?

Suggested solution

No response

Additional context

No response

Validations

  • [ ] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Help us

None

jackrebel avatar Nov 20 '23 07:11 jackrebel

我们还没有完全支持移动端,#640 这个 pr 合入后预计会有改善。


https://tencent.github.io/cherry-markdown/examples/h5.html 可以看看参照这个样例,布局问题是否会有改善

lyngai avatar Nov 20 '23 07:11 lyngai

当所有鼠标事件被优化至pointerEvent后,手机就能除个别功能,完善的编辑.

nenge123 avatar Nov 20 '23 13:11 nenge123

@jackrebel 我尝试改了事件,发现要兼容手机很难, 所有工具栏按钮必须使用<button>(特别IOS) 否则,点击工具栏会变成选中文字.

.还有对选中文字事件匹配(否则弹出 默认的选中菜单 挡住当前工具)

可能适合平板,手机可能用不了工具栏,不过理论上可以用选中时弹出一个遮罩 代替工具栏操作

nenge123 avatar Nov 21 '23 15:11 nenge123

@jackrebel 我尝试改了事件,发现要兼容手机很难, 所有工具栏按钮必须使用<button>(特别IOS) 否则,点击工具栏会变成选中文字.

.还有对选中文字事件匹配(否则弹出 默认的选中菜单 挡住当前工具)

可能适合平板,手机可能用不了工具栏,不过理论上可以用选中时弹出一个遮罩 代替工具栏操作

有道理,我们试试能不能把所有按钮都从<span>变成<button>吧~

sunsonliu avatar Nov 22 '23 01:11 sunsonliu