Bug 160513 - Dolphin automatically scrolls the files list
Summary: Dolphin automatically scrolls the files list
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 15:53 UTC by Christophe Marin
Modified: 2008-05-07 00:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot #1 (7.85 KB, image/png)
2008-04-07 15:55 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Marin 2008-04-07 15:53:35 UTC
Version:           1.0.99 (using 4.00.68 (KDE 4.0.68 >= 20080402), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-15-generic

KDE4 is built from trunk. current kdebase rev. 794349.

The title is not very clear, sorry, the testcase won't be better :-)

Testcase :
- Set dolphin to display files in list or icons,
- open a directory with many files and directories,
- If you don't click on anything the first file is "partially" selected (see screenshot1.png),
- Now scroll down (the scrollbar or the mouse wheel, that doesn't change anything)
- release,
- Dolphin automatically scrolls back up to show the selected file.

Notes : 
- The bug can't be verified if the dolphin window lost focus,
- The bug won't appear if you use your mouse to enter a dir.
- typing the directory name will make the bug noticeable.
 
- I enabled the double-click in systemsettings.
Comment 1 Christophe Marin 2008-04-07 15:55:05 UTC
Created attachment 24262 [details]
screenshot #1

That's what I call partially selected :-) there's a frame around the first
file/directory name but no colored background.
Comment 2 Peter Penz 2008-04-07 21:02:11 UTC
Thanks for the explanation, but I cannot reproduce this issue yet... 

> - Now scroll down (the scrollbar or the mouse wheel, that
>   doesn't change anything)
> - release,
> - Dolphin automatically scrolls back up to show the selected file. 

You mean Dolphin automatically scrolls back when releasing the mouse button? And when is the scrolling back triggered when using the mouse wheel (as there is no release)?

> - The bug can't be verified if the dolphin window lost focus,

Without focus it's not possible to move the content. I'm not sure what you want me to tell with this ;-)

> - The bug won't appear if you use your mouse to enter a dir.

How did you enter the directory? By using the keyboard? In this case I've no "partially selection" at all...

> - typing the directory name will make the bug noticeable. 

Also here I don't understand what you mean: when entering the directory name Dolphin should scroll to the directory name, so it is a wanted behavior in this case...

Maybe you can give me some additional hints :-) Thanks!
Comment 3 Christophe Marin 2008-04-07 22:41:22 UTC
Let's try again :-)

The problem is that the scrollbar goes back to its initial position when I release it.

I'm fighting with recordmydesktop to make a screencast, should be clearer :-)
Comment 4 Christophe Marin 2008-04-07 23:44:45 UTC
Well... let's give up the video idea for now :)

New testcase tested :

- Enable double-click in systemsettings,
- Select the detailed view,
- LMB on the first file,
- scroll down

Even if I don't release the scrollbar, dolphin tries to put it back in its original position.

Next testcase :
- double click is still enabled,
- select any file,
- scroll up or down,
- Dolphin will scroll back untill the file name appears just under the address location.

New things I noticed while testing :
- I have the issue when using konqueror as a file manager,
- It also happens if I select the file owner, permission, etc...

Better ? :)
Comment 5 Peter Penz 2008-04-08 07:50:59 UTC
Sorry, I still cannot reproduce this issue, but I have a guess: did you enable the file preview in your view? If this is the case: yes, there is a known issue that the scrollbar is reset to the top position until all (!) previews are generated. The root of the issue seems to be outside the scope of Dolphin, but I've to do further investigations to be sure.

If you've turned on the file-preview, I can set this issue to NEW. But I'm not sure if this is the case here, as this is totally unrelated to the file selection or the double click/single click setting...
Comment 6 Christophe Marin 2008-04-08 09:34:40 UTC
Indeed, the file preview function was enabled (I wonder why I didn't test without).

This brings another question, since I always used my home directory to write these *really* confusing testcases, aren't previews supposed to be cached ?  
Comment 7 Peter Penz 2008-04-08 10:09:17 UTC
> Indeed, the file preview function was enabled

Ah, good :-)

> aren't previews supposed to be cached ?   

Yes, they are cached on the disk, but still are loaded asynchronously and this takes still some time (especially in the debug version).
Comment 8 Peter Penz 2008-05-07 00:25:44 UTC
SVN commit 804790 by ppenz:

Fixed issue that the vertical scrollbar jumps back to the initial state during previews are loaded in the icons view.

BUG: 161086
BUG: 160513

 M  +10 -0     dolphiniconsview.cpp  
 M  +1 -0      dolphiniconsview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=804790