mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:55:46 +01:00
Quick Analysis: keep clear of the Auto Fill Options button, tests in the shared binary
After a fill-handle drag both buttons sat at the selection's corner and the Quick Analysis one, painted on top, took the click. The Quick Analysis button now waits until the fill is no longer current; Ctrl+Q still opens the popup. Drops "Bar" from the Japanese EXTRA list, now a DIALOGS key, and moves the button tests into tests/it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
818c97a632
commit
2a59d7f15d
4 files changed
+5
-2
No files matched your search
@@ -1142,7 +1142,6 @@ pub(super) const EXTRA: &[(&str, &str)] = &[
|
||||
("Treemap", "ツリーマップ"),
|
||||
("Sunburst", "サンバースト"),
|
||||
("Stock", "株価"),
|
||||
("Bar", "横棒"),
|
||||
(
|
||||
"Drag to fill cells. Drag from inside a cell to select a range.",
|
||||
"ドラッグしてセルをオートフィルします。セルの内側からドラッグすると範囲を選択します。",
|
||||
|
||||
@@ -203,7 +203,10 @@ pub fn show(app: &mut SheetApp, ui: &mut Ui, geo: &Geo, sh: &Sheet) {
|
||||
// While the mouse is down (selecting, filling) the button stays out of the way.
|
||||
let busy = app.grid.drag != Drag::None || ctx.input(|i| i.pointer.any_down());
|
||||
let lang = crate::i18n::current(&ctx);
|
||||
if corner_visible && (open || !busy) {
|
||||
// Right after a fill-handle drag the Auto Fill Options button sits at the same corner; it wins
|
||||
// until that fill is no longer current (Ctrl+Q still opens the popup).
|
||||
let fill_tag = app.grid.fill_tag.is_some();
|
||||
if corner_visible && (open || (!busy && !fill_tag)) {
|
||||
let mut clicked = false;
|
||||
egui::Area::new(Id::new("quick_analysis_button")).fixed_pos(button.min).order(Order::Foreground).show(&ctx, |ui| {
|
||||
let (r, resp) = ui.allocate_exact_size(button.size(), Sense::click());
|
||||
|
||||
@@ -64,6 +64,7 @@ mod pivot_pane;
|
||||
mod pivot_show_details;
|
||||
mod popup_dismissal;
|
||||
mod protect_password;
|
||||
mod quick_analysis_button;
|
||||
mod right_to_left;
|
||||
mod scroll_position;
|
||||
mod scrollbar_column_fill;
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user