Summary: | Scrolling with multitouch trackpad does not work | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Jan Gosmann <jan> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andriusmao, kirit, shentey, thundersteele |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | MacPorts | ||
OS: | macOS | ||
Latest Commit: | Version Fixed In: |
Description
Jan Gosmann
2010-05-27 23:50:06 UTC
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. 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 |