forked from joejulian/gio
io/pointer,gesture,app/internal/window: add pointer.Scroll event type
Signed-off-by: Gordon Klaus <gordon.klaus@gmail.com>
This commit is contained in:
@@ -278,7 +278,7 @@ func (w *window) scrollEvent(wParam, lParam uintptr) {
|
||||
p := f32.Point{X: float32(np.X), Y: float32(np.Y)}
|
||||
dist := float32(int16(wParam >> 16))
|
||||
w.w.Event(pointer.Event{
|
||||
Type: pointer.Move,
|
||||
Type: pointer.Scroll,
|
||||
Source: pointer.Mouse,
|
||||
Position: p,
|
||||
Buttons: w.pointerBtns,
|
||||
|
||||
Reference in New Issue
Block a user