mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: also check overflowY: overlay in detectScroll (#4806)
* fix: also check overflowY: overlay in detectScroll * fix lint Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
4604c8d823
commit
f792eb5ae7
1 changed files with 3 additions and 1 deletions
|
@ -475,7 +475,9 @@ export const getNearestScrollableContainer = (
|
|||
const hasScrollableContent = parent.scrollHeight > parent.clientHeight;
|
||||
if (
|
||||
hasScrollableContent &&
|
||||
(overflowY === "auto" || overflowY === "scroll")
|
||||
(overflowY === "auto" ||
|
||||
overflowY === "scroll" ||
|
||||
overflowY === "overlay")
|
||||
) {
|
||||
return parent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue