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
View does not move upon consecutive slide deletion #501
Comments
This comment has been minimized.
This comment has been minimized.
I am not sure if there is something intricate with different pages sizes, but the page deletion does not have a call to def on_action_delete(self, _action, _parameter, _unknown):
"""Removes the selected elements in the IconView"""
self.clear_selected()
+ self.scroll_to_selection() |
All pages dimensions are the same. I am not sure I correctly the second part of your comment though... |
Sorry for the confusion, it seems like I found another issue while trying to reproduce yours and didn't take enough care reading your report. I'll hide my earlier comment and create another issue for what I found. I'll also take @angsch 's suggestion as a PR, which works great by the way, and commit it straight to main. Thanks to both of you 👍 |
Looks like I fell straight into a rabbit-hole here: The |
One possible way to do it could be to read if the selected page is in the visible range |
@dreua are you working on this or do you mind if I try to fix it? |
I intended to but apart from the first findings here didnt, sorry. Im happy if you take it :) |
Thank you! |
Desciption
The view does not move upon consecutive slide deletion. This is a problem when deleting many slides, because we may end up way further than the last deleted slide.
What happens is that when we delete slide number N to slide number N+K, the view stays at slide number N+K, which is now an unseen slide.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that when we delete slide number N to slide number N+K, the view moves at slide number N, so that we can see the splice.
Input files
N/A
Screenshots
N/A
System and Versions
The text was updated successfully, but these errors were encountered: