@@ -50,8 +50,6 @@ export class AnalyticsService {
5050 AnalyticsService . config = {
5151 enabled : enabled ?? DEFAULT_ANALYTICS_CONFIG . enabled ,
5252 narrativeThreshold : DEFAULT_ANALYTICS_CONFIG . narrativeThreshold ,
53- trackCursorMovements : DEFAULT_ANALYTICS_CONFIG . trackCursorMovements ,
54- trackScrollEvents : DEFAULT_ANALYTICS_CONFIG . trackScrollEvents ,
5553 trackTerminalCommands : DEFAULT_ANALYTICS_CONFIG . trackTerminalCommands ,
5654 autoSaveInterval : DEFAULT_ANALYTICS_CONFIG . autoSaveInterval ,
5755 } ;
@@ -425,56 +423,6 @@ export class AnalyticsService {
425423 AnalyticsService . lastEventTime = Date . now ( ) ;
426424 }
427425
428- /**
429- * Records a scroll event.
430- */
431- public static recordScroll (
432- filePath : string ,
433- direction : 'up' | 'down' ,
434- linesScrolled : number ,
435- visibleStart ?: number ,
436- visibleEnd ?: number ,
437- ) : void {
438- if ( ! AnalyticsService . currentSession || ! AnalyticsService . config . trackScrollEvents ) {
439- return ;
440- }
441-
442- const now = new Date ( ) . toISOString ( ) ;
443- const normalizedPath = AnalyticsService . normalizePath ( filePath ) ;
444-
445- const activity = AnalyticsService . fileActivityMap . get ( normalizedPath ) ;
446- if ( activity ) {
447- // Calculate dwell time from last event
448- const dwellTime = Date . now ( ) - AnalyticsService . lastEventTime ;
449-
450- activity . scrollEvents . push ( {
451- timestamp : now ,
452- direction,
453- linesScrolled,
454- dwellTime,
455- visibleRange :
456- visibleStart !== undefined && visibleEnd !== undefined
457- ? { start : visibleStart , end : visibleEnd }
458- : undefined ,
459- } ) ;
460-
461- // Record navigation event
462- AnalyticsService . recordNavigationEvent ( {
463- timestamp : now ,
464- type : 'scroll' ,
465- toFile : normalizedPath ,
466- details : {
467- lineRange :
468- visibleStart !== undefined && visibleEnd !== undefined
469- ? { start : visibleStart , end : visibleEnd }
470- : undefined ,
471- } ,
472- } ) ;
473- }
474-
475- AnalyticsService . lastEventTime = Date . now ( ) ;
476- }
477-
478426 /**
479427 * Records a terminal command execution.
480428 */
0 commit comments