Fix browser page scrolling by initializing EntryHeight and correcting scroll handler type assertion

This commit is contained in:
gmp
2026-06-01 10:57:34 -04:00
parent 281298ac1f
commit 6709f52e0f
17 changed files with 855 additions and 155 deletions
+2
View File
@@ -3,6 +3,7 @@ package ui
import (
"bytes"
"embed"
"fmt"
"image"
"image/color"
_ "image/png"
@@ -199,6 +200,7 @@ func (r *Renderer) CheckGestures(q input.Source, m unit.Metric) []InputEvent {
delta := reg.scroll.Update(m, q, time.Now(), gesture.Vertical,
pointer.ScrollRange{}, pointer.ScrollRange{Min: -(1<<30), Max: 1<<30})
if delta != 0 {
fmt.Printf("Scroll detected: %v\n", delta)
events = append(events, InputEvent{
Handler: reg.handler,
Data: delta,