mitchcurtis / slate

Pixel Art Editor
GNU General Public License v3.0
1.05k stars 102 forks source link

Ensure that newly added animations are visible in the view #154

Closed mitchcurtis closed 3 years ago

mitchcurtis commented 3 years ago

When the animation view is already filled with animations, adding a new one (or duplicating) results in it being out of view and needing to scroll down.

mitchcurtis commented 3 years ago

Layers could also benefit from this as well, but https://bugreports.qt.io/browse/QTBUG-93743 makes it hard; the view will ensure that the newly added layer is visible, but the current layer will be just out of view.

mitchcurtis commented 3 years ago

c9c50708816c92705444f18173ad60df2277e2b4 for layers.

I don't want to change the current layer when adding a new one, as that could confirm/cancel selections, which is a bit destructive. For animations it shouldn't be an issue, and is probably the most convenient approach.