Version: unspecified (using KDE 4.4.3) OS: OS X I am not able to scroll in Kate using two fingers on my multitouch trackpad of my unibody Macbook Pro. The scroll wheel of mouses work without any problems. Also there is no problem with scrolling in Qt applications. This bug also existed in KDE 4.4.2, but I'm not sure in which version it occurred first. (But in some older versions it worked even if it was not very smooth because the text was always moved by three lines per step instantly.) Reproducible: Always Steps to Reproduce: Start Kate (or any editor using the kate component). Enter enough lines to make the scroll bar appear. Try to scroll using two finger on the trackpad of a Macbook Pro. Actual Results: The text is not scrolled. Expected Results: The text should scroll. I am using Mac OS X 10.6.3 (Snow Leopard) on an unibody Macbook Pro from late 2008 (5th generation)
Works here on Linux, both vertical and horizontally. Tested on two different machines.
I have the same problem. Scrolling using the trackpad is not working properly in kate, kile, kwrite. Increasing the scrolling speed in the mac system settings makes scrolling possible, but it is anything from smooth. Note that there are no problems in other KDE applications like kconsole, and there are also no problems if I use the mouse wheel from an external mouse. OS: OSX Snow Leopard 10.6.3 System: Macbook Pro, late 2008 (same as above it seems) KDE version: 4.4.2 installed using macports
I have the same problem on my MacBookPro, with the version installed via fink. The scrolling works horizontally, but not vertically.
SVN commit 1166438 by pletourn: Let's see if that help CCBUG:239070 M +3 -0 kateviewhelpers.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1166438
the opposite happens on Windows, vertical works, horizontal doesn't (single finger on bottom of touchpad, or double finger), not sure if this is the same bug or if I should file a separated one.
Thanks for the patch! I was already planning to see whether I am able to fix this myself. I am traveling for the next 6 weeks and will not be able to verify whether the patch works. But I will to so when I am back home in October.
Finally I had some time to test the patch. However, it does not fix the problem. Moreover I noticed when trying to scroll using two finger while the cursor is positioned above the scroll bar the scroll bar will be moved, but without scrolling the text area. This behavior is the same with and without the patch. When the cursor is positioned above the text area neither that nor the scroll bar moves.
What about this patch? Index: view/kateviewinternal.cpp =================================================================== --- view/kateviewinternal.cpp (revision 1186827) +++ view/kateviewinternal.cpp (working copy) @@ -3173,7 +3173,7 @@ void KateViewInternal::wheelEvent(QWheel else scrollNextPage(); } else { - scrollViewLines(-((e->delta() / 120) * QApplication::wheelScrollLines())); + QApplication::sendEvent(m_lineScroll, e); } } else if (columnScrollingPossible()) {
With this patch the scroll bar moves also when the cursor is positioned about the text area when using the trackpad to scroll (which wasn't the case without the patch). But the text itself does not move.
This patch is in 4.5 but you're using 4.4, right? Index: view/kateviewinternal.cpp =================================================================== --- view/kateviewinternal.cpp (revision 1132544) +++ view/kateviewinternal.cpp (revision 1132545) @@ -147,6 +147,7 @@ KateViewInternal::KateViewInternal(KateV connect(m_lineScroll, SIGNAL(actionTriggered(int)), SLOT(scrollAction(int))); connect(m_lineScroll, SIGNAL(sliderMoved(int)), SLOT(scrollLines(int))); connect(m_lineScroll, SIGNAL(sliderMMBMoved(int)), SLOT(scrollLines(int))); + connect(m_lineScroll, SIGNAL(valueChanged(int)), SLOT(scrollLines(int))); // catch wheel events, completing the hijack //m_lineScroll->installEventFilter(this);
Yes, I am using 4.4.5, because the Macports port is still that version.
What the last patch does for you?
I have not tested it, yet. I suppose, I will do it tomorrow.
Great news: Using the last two patches the scrolling works! To prevent misunderstandings, I used the following to patches for KDE 4.4.5. Therefore the later one should already be included in KDE 4.5. Index: view/kateviewinternal.cpp =================================================================== --- view/kateviewinternal.cpp (revision 1186827) +++ view/kateviewinternal.cpp (working copy) @@ -3173,7 +3173,7 @@ void KateViewInternal::wheelEvent(QWheel else scrollNextPage(); } else { - scrollViewLines(-((e->delta() / 120) * QApplication::wheelScrollLines())); + QApplication::sendEvent(m_lineScroll, e); } } else if (columnScrollingPossible()) { Index: view/kateviewinternal.cpp =================================================================== --- view/kateviewinternal.cpp (revision 1132544) +++ view/kateviewinternal.cpp (revision 1132545) @@ -147,6 +147,7 @@ KateViewInternal::KateViewInternal(KateV connect(m_lineScroll, SIGNAL(actionTriggered(int)), SLOT(scrollAction(int))); connect(m_lineScroll, SIGNAL(sliderMoved(int)), SLOT(scrollLines(int))); connect(m_lineScroll, SIGNAL(sliderMMBMoved(int)), SLOT(scrollLines(int))); + connect(m_lineScroll, SIGNAL(valueChanged(int)), SLOT(scrollLines(int))); // catch wheel events, completing the hijack //m_lineScroll->installEventFilter(this); Thanks for all the help! :)
SVN commit 1188021 by pletourn: Let QScrollBar take care of the wheel event BUG:239070 M +1 -1 kateviewinternal.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1188021
SVN commit 1188022 by pletourn: Let QScrollBar take care of the wheel event BUG:239070 M +1 -1 kateviewinternal.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1188022