mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 01:43:43 +00:00
small fixes
- paginator shows correctly past - now - future - uselayouteffect in pip - scroll into view would crash if event was deleted
This commit is contained in:
@@ -77,6 +77,7 @@ export default function EventList(props) {
|
||||
|
||||
// when cursor moves, view should follow
|
||||
useEffect(() => {
|
||||
if (cursorRef.current == null) return;
|
||||
cursorRef.current.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'nearest',
|
||||
|
||||
Reference in New Issue
Block a user