Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Disable left-click kinetic scrolling on timeline

Carsten Hartenfels75b4591f36df
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp b/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
index 62c1eb774d..a66c6b6b3c 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
@@ -251,7 +251,11 @@ KisAnimTimelineFramesView::KisAnimTimelineFramesView(QWidget *parent)
/********** Kinetic Scrolling **************************************************************/
- {
+ // Kinetic scrolling via left-click renders the timeline effectively
+ // unusable, you end up scrolling the timeline every time you try to move a
+ // key frame or attempt to use the zoom slider. So we don't enable kinetic
+ // scrolling in that case and require the use of the scrollbar instead.
+ if (KisKineticScroller::getConfiguredGestureType() != QScroller::LeftMouseButtonGesture) {
QScroller *scroller = KisKineticScroller::createPreconfiguredScroller(this);
if (scroller) {
connect(scroller, SIGNAL(stateChanged(QScroller::State)),