mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
M5: pop-up title bars and resize grips move only with the primary button
Main's page-pointer guard (NOT_PAGE_DRAGS) refuses any-button drag starts in page modules; a right-button drag on a pop-up's bar no longer moves it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
This commit is contained in:
1 parent
abb29ba7e1
commit
389e0e9839
1 file changed
+2
-2
@@ -425,7 +425,7 @@ pub(crate) fn popups(ctx: &egui::Context, view: &mut DocView, info: &DocInfo, pr
|
||||
if grip.hovered() || grip.dragged() {
|
||||
ui.ctx().set_cursor_icon(egui::CursorIcon::Grab);
|
||||
}
|
||||
if grip.drag_started() {
|
||||
if grip.drag_started_by(egui::PointerButton::Primary) {
|
||||
view.comments.popup_drag = Some((page, a.index, pos));
|
||||
}
|
||||
if grip.dragged()
|
||||
@@ -514,7 +514,7 @@ pub(crate) fn popups(ctx: &egui::Context, view: &mut DocView, info: &DocInfo, pr
|
||||
let stroke = egui::Stroke::new(1.0, pal.faint);
|
||||
ui.painter().line_segment([corner - egui::vec2(3.0, inset), corner - egui::vec2(inset, 3.0)], stroke);
|
||||
}
|
||||
if grip.drag_started() {
|
||||
if grip.drag_started_by(egui::PointerButton::Primary) {
|
||||
view.comments.popup_resize = Some((page, a.index, size));
|
||||
}
|
||||
if grip.dragged()
|
||||
|
||||
Reference in new issue
Block a user