Bug 502713 - timeline auto zoom bug
Summary: timeline auto zoom bug
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Animation (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-12 14:45 UTC by ahmett
Modified: 2025-05-10 01:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
setting ss (84.25 KB, image/png)
2025-04-12 14:45 UTC, ahmett
Details
video range (641.18 KB, video/mp4)
2025-04-12 14:46 UTC, ahmett
Details
2nd expmle (3.74 MB, video/mp4)
2025-04-24 21:24 UTC, ahmett
Details
mark frame alternate idea (212.89 KB, image/png)
2025-05-10 01:55 UTC, ahmett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ahmett 2025-04-12 14:45:30 UTC
After setting the timeline range, it automatically zooms from the end frame to the first frame. There is a way to disable this feature in the settings, but I think it doesn’t work correctly.
I think there should not be an automatic scale after a certain range.
Comment 1 ahmett 2025-04-12 14:45:57 UTC
Created attachment 180201 [details]
setting ss
Comment 2 ahmett 2025-04-12 14:46:20 UTC
Created attachment 180202 [details]
video range
Comment 3 Emmet O'Neill 2025-04-23 02:48:26 UTC
Hi. I've tested this but I can't reproduce that behavior. 
Can you give me more information?

- The "adapt playback range to keyframes" setting changes the playback range only (as in the start and end frames of the animation), and it shouldn't change the zoom level of the GUI at all. It will only make sure that newly created frames are included in the playback range. 
- From your video I can see you're hitting a non-standard GUI button labelled "end >", but I'm not sure what action that's triggering.

Any other info you have for us will be a big help.
Comment 4 ahmett 2025-04-24 21:23:08 UTC
Thanks for the reply. I recorded a new video to explain things more clearly. The scene I’m working on has around 250 frames, and I only want to play frames 26 to 50. As soon as I set that range, the timeline automatically zooms in to that area, stretching it to fit.

I think it would be better if this zooming was optional. I’d prefer to set the timeline view myself, and even if I change the playback range later, the overall view shouldn’t change or zoom in on its own.

Hope this explanation makes more sense now.
Comment 5 ahmett 2025-04-24 21:24:13 UTC
Created attachment 180623 [details]
2nd expmle
Comment 6 ahmett 2025-04-24 21:32:44 UTC
The button labeled "end >" is actually for "set start time" and "set end time". I renamed them in the krita.actions file to make them easier to distinguish in the toolbar.
Comment 7 Bug Janitor Service 2025-04-25 03:47:30 UTC
🐛🧹 Thanks for your comment!

Automatically switching the status to REPORTED so the team can perform further triage.

In the future you may also do this yourself when providing needed information.
Comment 8 Emmet O'Neill 2025-05-08 23:00:16 UTC
Git commit d9147dbd506aa83a238380fe7e543e0801e63567 by Emmet O'Neill.
Committed on 08/05/2025 at 22:40.
Pushed by emmetoneill into branch 'master'.

Settings/General/Animation: Added an toggle for timeline autozoom

When activated, the timeline will try to autozoom to fit the active
animation playback range (start/end frames).

This setting is enabled by default.

M  +8    -0    libs/ui/dialogs/kis_dlg_preferences.cc
M  +3    -0    libs/ui/dialogs/kis_dlg_preferences.h
M  +8    -1    libs/ui/forms/wdggeneralsettings.ui
M  +10   -0    libs/ui/kis_config.cc
M  +3    -0    libs/ui/kis_config.h
M  +5    -1    plugins/dockers/animation/KisAnimTimelineDocker.cpp

https://invent.kde.org/graphics/krita/-/commit/d9147dbd506aa83a238380fe7e543e0801e63567
Comment 9 Emmet O'Neill 2025-05-08 23:07:44 UTC
Hi Ahmett. 

I've added an option for this behavior that will soon be found in `Configure Krita... > General Section > Animation Tab`. 
You will need to use tomorrow's (or newer) "Krita Next" nightly build from the website to try it out.
(If you don't see the "Animation" tab, you are probably on too old of a version.)

At least for now, the default behavior is that AutoZoom is on, so you will need to opt out.

Admittedly the timeline autozoom feature could work a little better, but generally I think the idea to keep things framed on the active range is a good one.

Let me know if you have any more problems with it!
(Oh, and your animations look pretty cool so far!) :)
Comment 10 ahmett 2025-05-10 01:55:00 UTC
Created attachment 181122 [details]
mark frame alternate idea

hi, emmet.thanks a lot :) i asked this before and you said it was possible. then i forgot to open a ticket for this. i'm sharing it here so you can see it quickly while we're talking. what do you think of the attached draft idea?