feat: endless canvas grows only to the right and down (Issue #30)
The view stops 10 mm left of and above the start frame, or above and left of content that lies further out in notebooks from 0.29/0.30, so a new endless notebook starts at the top left like a sheet of paper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
08a5b014e0
commit
630fe31b76
8 files changed
+96
-3
No files matched your search
+5
-1
@@ -3156,7 +3156,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Auswahl oder beim Ziehen des Lineals). Wer auf einer Nachbarseite
|
||||
// schreibt, bleibt dort, bis wieder gescrollt wird (Undo betrifft sie).
|
||||
canvas.set_fit_box(notebook.fit_box());
|
||||
if ui_state.continuous_scroll {
|
||||
if notebook.is_endless() {
|
||||
if canvas.clamp_endless(notebook.current_page().endless_scroll_limit()) {
|
||||
fling.stop();
|
||||
}
|
||||
} else if ui_state.continuous_scroll {
|
||||
let stack = notebook.page_stack();
|
||||
if canvas.clamp_scroll(&stack) {
|
||||
// Am Anfang oder Ende des Notizbuchs angekommen
|
||||
|
||||
Reference in new issue
Block a user