mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
@@ -1032,7 +1032,10 @@ func (w *window) flushScroll() {
|
|||||||
|
|
||||||
func (w *window) onPointerMotion(x, y C.wl_fixed_t, t C.uint32_t) {
|
func (w *window) onPointerMotion(x, y C.wl_fixed_t, t C.uint32_t) {
|
||||||
w.flushScroll()
|
w.flushScroll()
|
||||||
w.lastPos = f32.Point{X: fromFixed(x), Y: fromFixed(y)}
|
w.lastPos = f32.Point{
|
||||||
|
X: fromFixed(x) * float32(w.scale),
|
||||||
|
Y: fromFixed(y) * float32(w.scale),
|
||||||
|
}
|
||||||
w.w.event(pointer.Event{
|
w.w.event(pointer.Event{
|
||||||
Type: pointer.Move,
|
Type: pointer.Move,
|
||||||
Position: w.lastPos,
|
Position: w.lastPos,
|
||||||
|
|||||||
Reference in New Issue
Block a user