|
@@ -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;
|