MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / constructor

Method constructor

chat/components/MessageNavigation.js:3–16  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

1// Message Navigation Component
2import { renderMathContent } from '../services/mathRendering.js';
3
4export default class MessageNavigation {
5 constructor(app) {
6 this.app = app;
7 this.currentMessageIndex = 0;
8 this.messages = [];
9 this.container = null;
10 this.isVisible = false;
11 this.hideTimeout = null;
12 this.isNavigating = false; // Flag to prevent scroll handler from overriding click navigation
13 this.clickedIndex = null; // Tracks user-clicked bar, null = use viewport-based detection
14 this.awaitingScrollEnd = false; // True while waiting for programmatic scroll to finish
15 this.scrollEndTimer = null;
16 this.scrollFrame = null;
17
18 this.init();
19 }

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected