类型 ScrollEvent

API 文档由 Go 源码生成,内容为英文。

type ScrollEvent struct {
	Modifiers Modifiers
	X         float32
	Y         float32
	DeltaX    float32
	DeltaY    float32
	Viewport  Size
	Target    ID
	Precise   bool
}

ScrollEvent is one normalized scroll gesture in logical window pixels. Target is the stable hit ID at X,Y. Viewport is the current logical window size, allowing coordinate-driven controls to derive their local geometry.