| Summary: | Scrollwheel doesn't work on position slider | ||
|---|---|---|---|
| Product: | [Applications] amarok | Reporter: | ieure |
| Component: | general | Assignee: | Amarok Bugs <amarok-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | thanos.kyritsis |
| Priority: | NOR | ||
| Version First Reported In: | 1.2 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | xine-engine.cpp.patch | ||
|
Description
ieure
2005-02-19 19:26:48 UTC
Yep, I can confirm this. This is because during a seek the engine (may) return 0 for position. So If you scroll at that time it will seek from position 0. This is a duplicate report. *** Bug 99078 has been marked as a duplicate of this bug. *** *** Bug 99078 has been marked as a duplicate of this bug. *** On 1.2.3 here, using the scrollwheel on the song position slider results in skipping and garbled sound and no song movement, using both aKode and Gstreamer engines. I tried to test the arts engine but it wouldn't start playing at all. Looking at 99078, I don't have the same kind of behavior at all. Shift+scroll over the systray icon works perfectly; it's only the position slider that's broken; and it doesn't involve large numbers of scrolls. SVN commit 440138 by xatax:
Fix the ancient Scrollwheel doesn't work on position slider bug.
BUG: 99808
M +3 -0 sliderwidget.cpp
--- trunk/extragear/multimedia/amarok/src/sliderwidget.cpp #440137:440138
@@ -37,7 +37,10 @@
amaroK::Slider::wheelEvent( QWheelEvent *e )
{
uint step = e->delta() / 18;
+ // Volume Slider
if( orientation() == Vertical ) step = -step;
+ // Position Slider
+ else step = step * 1500;
QSlider::setValue( QSlider::value() + step );
emit sliderReleased( value() );
Created attachment 18945 [details]
xine-engine.cpp.patch
1.4.4 bug still here, but now it appears at global seek hotkey. I think this
patch(hack?) can remove him from everywhere.
Alex, I've committed your patch. It works great! Many thanks :) |