mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
refactor: cleanup logs
This commit is contained in:
@@ -66,7 +66,6 @@ export default function Operator() {
|
|||||||
|
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
// prevent considering automated scrolls as user scrolls
|
// prevent considering automated scrolls as user scrolls
|
||||||
console.log('handling', isAutomatedScroll);
|
|
||||||
if (isAutomatedScroll.current) {
|
if (isAutomatedScroll.current) {
|
||||||
isAutomatedScroll.current = false;
|
isAutomatedScroll.current = false;
|
||||||
return;
|
return;
|
||||||
@@ -78,8 +77,6 @@ export default function Operator() {
|
|||||||
if (selectedRect && scrollerRect) {
|
if (selectedRect && scrollerRect) {
|
||||||
const distanceFromTop = selectedRect.top - scrollerRect.top;
|
const distanceFromTop = selectedRect.top - scrollerRect.top;
|
||||||
const hasScrolledOutOfThreshold = distanceFromTop < -8 || distanceFromTop > selectedOffset;
|
const hasScrolledOutOfThreshold = distanceFromTop < -8 || distanceFromTop > selectedOffset;
|
||||||
console.log('distanceFromTop', distanceFromTop, hasScrolledOutOfThreshold);
|
|
||||||
|
|
||||||
setLockAutoScroll(hasScrolledOutOfThreshold);
|
setLockAutoScroll(hasScrolledOutOfThreshold);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user