Skip to content

Commit 3226310

Browse files
committed
Update scroll behavior in pageMode
1 parent ae7be31 commit 3226310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vitessce/widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def get_uid_str(uid):
424424
const divRef = React.useRef();
425425
426426
React.useEffect(() => {
427-
if(!divRef.current) {
427+
if(!divRef.current || pageMode) {
428428
return () => {};
429429
}
430430
@@ -450,7 +450,7 @@ def get_uid_str(uid):
450450
divRef.current.removeEventListener("mouseleave", handleMouseLeave);
451451
}
452452
};
453-
}, [divRef]);
453+
}, [divRef, pageMode]);
454454
455455
// Config changed on JS side (from within <Vitessce/>),
456456
// send updated config to Python side.

0 commit comments

Comments
 (0)