pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.47k stars 273 forks source link

Layer list does not scroll when using arrow keys #1858

Closed HeCorr closed 3 months ago

HeCorr commented 3 months ago

Issue Summary

When selecting different layers with the Up and Down arrow keys, the list doesn't scroll automatically, forcing the user to scroll it manually with the mouse wheel to see which layer is currently active.

### Actual Results The timeline (specifically the layer list) stays in place: https://github.com/user-attachments/assets/6d0b6289-61ab-4633-9071-6e32b6899fb7 ### Expected Results I expected the timeline to scroll vertically automatically, so the active layer stays visible: (manually scrolled for the sake of illustration) https://github.com/user-attachments/assets/59d00ce0-11ea-4727-a111-1ea68032c2d2 ### Steps to reproduce 1. Open Pencil2D 2. Create multiple layers 3. Change the active layer by pressing the Up and Down arrow keys ### System Information ``` Nightly Build Jun 17 2024 commit: b28357852d6b4467c7e7cbca4179e166d62d7c9b date: 2024-06-17_18:35:38 Operating System: Windows 10 Version 1909 CPU Architecture: x86_64 Qt Version: 5.15.2 RAM Size: 64 GB ```
HeCorr commented 3 months ago

I'm on the right track to fixing this, please assign me!

Already got the general behavior working but it can be improved, and there's an issue when clicking on a layer at the very edge.