MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / MouseScrollDelta

Method MouseScrollDelta

ui/fullscreen_backend.go:566–576  ·  view source on GitHub ↗
(pane string)

Source from the content-addressed store, hash-verified

564}
565
566func (b *FullscreenRendererBackend) MouseScrollDelta(pane string) int {
567 layout := b.viewportLayout()
568 switch pane {
569 case "tasks":
570 return maxInt(1, layout.TasksLines/2)
571 case "modal":
572 return maxInt(1, layout.ModalLines/2)
573 default:
574 return maxInt(1, layout.TranscriptLines/2)
575 }
576}
577
578func (b *FullscreenRendererBackend) CancelSearchMode() {
579 b.InputMode = "normal"

Callers 1

HandleKeyMethod · 0.95

Calls 2

viewportLayoutMethod · 0.95
maxIntFunction · 0.85

Tested by

no test coverage detected