Closed bigfoodK closed 1 month ago
Event::Wheel should have same xy as other mouse events
Wrong xy returns
ctx.add( simple_rect( Wh::single(100.px()), Color::TRANSPARENT, 0.px(), Color::BLACK, ) .attach_event(|event| { let Event::Wheel { event } = event else { return; }; let local_xy = event.local_xy(); namui::log!(">>>>>>>>> xy: {local_xy:?}"); }), );
[WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(0.0), y: Px(8704.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(0.0), y: Px(13312.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(0.0), y: Px(19712.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(0.0), y: Px(38144.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(0.0), y: Px(59392.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(1.0), y: Px(6400.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(1.0), y: Px(10496.0) } [WASI stdout(tid: 15)] >>>>>>>>> xy: Xy { x: Px(1.0), y: Px(14848.0) }
Other mouse events are fine
Expected Behavior
Event::Wheel should have same xy as other mouse events
Actual Behavior
Wrong xy returns
Steps to Reproduce
Other Info
Other mouse events are fine