Ivan

Results 59 comments of Ivan

Its in a case https://github.com/emilk/egui/pull/1650 be merged

I'm not understand what lint wants from me >error: missing documentation for an associated function Is there is another place where it should be documented?

> Also: should this be implemented for `eframe` web? it could be, i think. web-event has delta already. anyway, as i said it should not break existing behavior, if there...

Bad news. web just cant delta. I thought [this numeric input](http://idflood.github.io/draggable-number.js/) works, I thought this works https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX But seems not. So in wasm it works the old way.

> perhaps add a separate `motion: Vec2` for these unspecified units Great idea. I'll do it. And change DragValue to use them.

Squashed and rebased

Sorry. Is any changes still needed? I was trying to document my best, but there is long story behind this stuff

Some todos: don't change position on emit release event. For some reason if we lose focus while dragging, we would not get release event and cant unlock cursor

Just realized I can use https://docs.rs/winit/latest/winit/event/enum.DeviceEvent.html#variant.MouseMotion for delta to modify DragValue just by delta and thats all.