This commit is contained in:
parent
2686d86c6b
commit
ff736d99f4
1 changed files with 1 additions and 1 deletions
|
@ -1063,7 +1063,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
const contentRect = protyle.contentElement.getBoundingClientRect();
|
||||
if (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB || event.clientY > contentRect.bottom - Constants.SIZE_SCROLL_TB) {
|
||||
if (!hasClosestByClassName(event.target, "av__cell") && (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB || event.clientY > contentRect.bottom - Constants.SIZE_SCROLL_TB)) {
|
||||
protyle.contentElement.scroll({
|
||||
top: protyle.contentElement.scrollTop + (event.clientY < contentRect.top + Constants.SIZE_SCROLL_TB ? -Constants.SIZE_SCROLL_STEP : Constants.SIZE_SCROLL_STEP),
|
||||
behavior: "smooth"
|
||||
|
|
Loading…
Add table
Reference in a new issue