Bug 158466

Summary: kate part: scrollwheel on horizontal vertical only moves slider but not text
Product: [Applications] kate Reporter: Majin Sniper <majinsniper>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alexrudd0, andresbajotierra, christoph, cuciferus, herve
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Before Wheel scrolling
After Wheel Scrolling

Description Majin Sniper 2008-02-26 20:00:20 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          GCC 4.1.2 Gentoo eBuild
OS:                Linux

In Kate/Kwrite, when you use the scrollwheel over the scrollbar, only the slider moves, but not the text content. This only applies to the vertical scroll bar, not the horizontal (see Screenshots, the file contains the number 1 to 70, one in each line). I've observed this behavior in Kile as well, so I guess it is a problem in the Kate Part.

This seems not to be a problem with the QT Text Area, since Multiline Edits (e.g. the one on this website to add comments, when viewing the page in Konqueror) do not have this problem.
Comment 1 Majin Sniper 2008-02-26 20:00:53 UTC
Created attachment 23717 [details]
Before Wheel scrolling
Comment 2 Majin Sniper 2008-02-26 20:01:13 UTC
Created attachment 23718 [details]
After Wheel Scrolling
Comment 3 Dominik Haumann 2008-04-09 22:16:19 UTC
It's probably in kateviewinternal.cpp. m_lineScroll is of type KateScrollBar. Some signals are connected, but not the signal QScrollBar::valueChanged(int).
I don't have a wheel mouse :o anyone else? :)
Comment 4 Dario Andres 2008-08-01 22:44:07 UTC
The bug 160981 is a duplicate of this.
I can confirm this in KDE 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) (KDEmod) in ArchLinux i686
Comment 5 Cristi 2008-08-02 08:30:50 UTC
Confirmed with kde 4.2>=20080709 on gentoo
Comment 6 Dario Andres 2008-08-19 18:21:55 UTC
I can also reproduce this using:
Version 4.1.62 (KDE 4.1.62 (KDE 4.2 >= 20080814))
kdelibs4.2 svn rev.849324
kdebase4.2 svn rev.849337
ArchLinux 2.6.25-zen2-20080814 i686 
Comment 7 Cristi 2008-08-26 14:37:58 UTC
*** Bug 160981 has been marked as a duplicate of this bug. ***
Comment 8 Bram Schoenmakers 2008-09-07 12:00:24 UTC
*** Bug 161412 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Cullmann 2008-09-07 15:14:41 UTC
SVN commit 858143 by cullmann:

fix scrolling with wheel on scrollbar
BUG: 161412


 M  +5 -0      kateviewhelpers.cpp  
 M  +1 -0      kateviewhelpers.h  


--- trunk/KDE/kdelibs/kate/view/kateviewhelpers.cpp #858142:858143
@@ -196,6 +196,11 @@
   }
 }
 
+void KateScrollBar::wheelEvent(QWheelEvent *e)
+{
+  QCoreApplication::sendEvent(m_viewInternal, e);
+}
+
 void KateScrollBar::marksChanged()
 {
   recomputeMarksPositions();
--- trunk/KDE/kdelibs/kate/view/kateviewhelpers.h #858142:858143
@@ -74,6 +74,7 @@
     virtual void resizeEvent(QResizeEvent *);
     virtual void styleChange(QStyle &oldStyle);
     virtual void sliderChange ( SliderChange change );
+    virtual void wheelEvent(QWheelEvent *e);
 
   protected Q_SLOTS:
     void sliderMaybeMoved(int value);
Comment 10 Hervé Fache 2008-11-25 11:59:41 UTC
I still have this bug in KDE 4.1.3/Kate 3.1.3