mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 02:21:53 +00:00
Format the cancelled sampler pointer-state binding
This commit is contained in:
@@ -468,9 +468,8 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
|
||||
/// A press arriving with an invalidated sampler and its release belong to that cancelled pick.
|
||||
fn input_after_sampler_refresh(app: &mut VectorcraftApp, ui: &Ui, resp: &egui::Response, rect: egui::Rect, cancelled: bool) {
|
||||
let (pressed, released, down, any_pressed) = ui.input(|i| {
|
||||
(i.pointer.primary_pressed(), i.pointer.primary_released(), i.pointer.primary_down(), i.pointer.any_pressed())
|
||||
});
|
||||
let (pressed, released, down, any_pressed) =
|
||||
ui.input(|i| (i.pointer.primary_pressed(), i.pointer.primary_released(), i.pointer.primary_down(), i.pointer.any_pressed()));
|
||||
let consumed_primary = ui.data_mut(|data| {
|
||||
let id = resp.id.with("image-trace-consumed-primary");
|
||||
// A fresh press replaces any ownership whose release this canvas did not observe.
|
||||
|
||||
Reference in New Issue
Block a user