1
0
Fork 0

Add todo about modifier handling in egui-baseview

This commit is contained in:
Robbert van der Helm 2022-02-09 12:28:38 +01:00
parent 7eb8622736
commit 64da9c52c2

View file

@ -58,6 +58,10 @@ impl<'a, P: Param> ParamSlider<'a, P> {
.set_parameter_normalized(self.param, normalized_default); .set_parameter_normalized(self.param, normalized_default);
} }
// TODO: egui-baseview doesn't seem to (re)set the modifiers correctly in some cases. For
// instance, dragging outside of a window, pressing or releasing shift, and then moving back
// into the window causes the old state to be stuck. Presumably it only modifies this based on
// keybaord events and not based on mouse events.
fn granular_drag(&self, ui: &Ui, drag_delta: Vec2) { fn granular_drag(&self, ui: &Ui, drag_delta: Vec2) {
// Remember the intial position when we started with the granular drag. This value gets // Remember the intial position when we started with the granular drag. This value gets
// reset whenever we have a normal itneraction with the slider. // reset whenever we have a normal itneraction with the slider.