This commit is contained in:
parent
baf6dfd64f
commit
6f41c3e4d0
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
|
|||
// 有些事件不经过 touchmove
|
||||
|
||||
if (scrollBlock) {
|
||||
closePanel();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -232,7 +233,7 @@ export const handleTouchMove = (event: TouchEvent) => {
|
|||
} else if (scrollElement.dataset.type === "NodeMathBlock") {
|
||||
scrollElement = target;
|
||||
while (scrollElement && scrollElement.dataset.type !== "NodeMathBlock") {
|
||||
if (scrollElement.nodeType === 1 && scrollElement.scrollWidth > scrollElement.clientWidth) {
|
||||
if (scrollElement.nodeType === 1 && scrollElement.scrollLeft > 0) {
|
||||
break;
|
||||
}
|
||||
scrollElement = scrollElement.parentElement;
|
||||
|
|
Loading…
Add table
Reference in a new issue