Review Request 121725: Fix kmix tray icon scrolling

Christian Esken esken at kde.org
Tue Jan 20 21:05:19 GMT 2015



> On Dec. 28, 2014, 9:37 p.m., Kai Uwe Broulik wrote:
> > Shouldn't this rather be fixed in systray only forwarding single ticks to apps? I suppose most apps break with high precision scrolling in that regard, many of which are not under our control.
> 
> Xuetian Weng wrote:
>     SNI interface is designed to have the "delta" argument.
>     http://www.notmart.org/misc/statusnotifieritem/statusnotifieritem.html

I agree with Xuetian Weng. delta is a part of the standard. Unfortunately it is very easy for developers to misinterpret, as the documentation about delta has always been ridicously bad. For example the document linked just say "_The delta parameter represent the amount of scroll_" (no units given at all). The Qt documentation is much better, but even the Qt example on "QWheelEvent::delta ()" is broken for high-precision devices.

Also I would like to stress the solution presented in this review follows exactly recommendations from Qt: "_To support this possibility, you can either cumulatively add the delta values from events [...]_". A sentence which is important, but easy to miss (I also did).


- Christian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121725/#review72627
-----------------------------------------------------------


On Dec. 28, 2014, 9 p.m., Xuetian Weng wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121725/
> -----------------------------------------------------------
> 
> (Updated Dec. 28, 2014, 9 p.m.)
> 
> 
> Review request for KDE Multimedia and Christian Esken.
> 
> 
> Bugs: 313579 and 341536
>     http://bugs.kde.org/show_bug.cgi?id=313579
>     http://bugs.kde.org/show_bug.cgi?id=341536
> 
> 
> Repository: kmix
> 
> 
> Description
> -------
> 
> High-precision scroll is going to send scroll event with multiple small delta event. A simple way to fix it is to round it by 120 for a single increment.
> 
> The problem in 313579 is that the delta value is directly divided by 120. This patch add all delta value up and round it by 120.
> 
> 
> Diffs
> -----
> 
>   gui/kmixdockwidget.h a0d7a46 
>   gui/kmixdockwidget.cpp eeccb36 
> 
> Diff: https://git.reviewboard.kde.org/r/121725/diff/
> 
> 
> Testing
> -------
> 
> Plasma 5 + kmix scroll with trackpad.
> 
> 
> Thanks,
> 
> Xuetian Weng
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20150120/6186932d/attachment.htm>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


More information about the kde-multimedia mailing list