Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move selection to another page #1085

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

QubaB
Copy link
Contributor

@QubaB QubaB commented Dec 31, 2023

Implemented moving selection across pages. Undo/redo works.

In Select added pageIndexStart holding original page of selection.
In EditorHistory added pageIndexStart - important only for move
In Editor is mainly change onDrawUpdate which should handle moving items to another page.

Closes #932

Copy link

codecov bot commented Dec 31, 2023

Codecov Report

Attention: Patch coverage is 8.23529% with 78 lines in your changes are missing coverage. Please review.

Project coverage is 37.07%. Comparing base (2ecd0f6) to head (3350fc4).

Files Patch % Lines
lib/pages/editor/editor.dart 6.09% 77 Missing ⚠️
lib/data/tools/select.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1085      +/-   ##
==========================================
- Coverage   37.42%   37.07%   -0.36%     
==========================================
  Files         110      110              
  Lines        8599     8675      +76     
==========================================
- Hits         3218     3216       -2     
- Misses       5381     5459      +78     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Jakub Zlámal added 3 commits February 27, 2024 11:03
Undo/redo is not handled correctly because old items are deleted and new created.
In Select  added pageIndexStart holding original page of selection.
In EditorHistory added pageIndexStart - important only for move

Solving issue saber-notes#932
Jakub Zlámal added 3 commits April 1, 2024 07:17
…selection movement is stored to history.

This fixes problem when selection is moved across pages, and then moved on page (in this case pageIndexStart was set according to the first movement of selection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot drag selection to another page
2 participants