handleScroll method
void
handleScroll()
Implementation
void handleScroll() {
final currentTimeMillis = DateTime.now().millisecondsSinceEpoch;
if (_shouldHandleScrollEvent(currentTimeMillis)) {
updateRects();
_lastScrollEventSentTimestamp = currentTimeMillis;
// Reset timer for final position check
_scrollTimer?.cancel();
_scrollTimer =
Timer(Duration(milliseconds: _SCROLL_EVENT_DELAY_MS), updateRects);
}
}