file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *byblo »

While on thumbnail mode, sometimes when zooming in/out (cm_ZoomOut N or manually) or changing the middle separator (cm_NPercent or manually), the cursor jumps to another file or even to the first position in the list.

In addition, if quickview is enabled, sometimes it either refresh to the newer file under the cursor, or simply stays at the previous file.

Sometimes also the cursor gets out of the visible listing.

Even trying with quickview disabled and the thumbnails empty the problem still happening.

Using TC 10.50 32bits but probably problems remains in newer versions.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *white »

byblo wrote: 2022-10-15, 17:39 UTC Using TC 10.50 32bits but probably problems remains in newer versions.
You think so?
HISTORY.TXT wrote: 23.08.22 Fixed: When switching from to a view mode with a different window width set via auto-run commands, e.g. cm_100Percent 70|cm_50Percent, the file under the cursor could be moved out of the visible area (32764)
23.08.22 Fixed: When switching from a view mode with thumbnail view to another one with thumbnail view, the cursor position was lost (32/64)
Please try TC 10.51 and see if the problem remains.
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *byblo »

Just tried with the lastest TC 10.52RC3 and same problems.


edit:
Curiously the TC's history reporting those problems as fixed, but in my cases they are not fixed for some reason:

24.08.22 Release Total Commander 10.51 release candidate 3 (RC3)
23.08.22 Fixed: When switching from to a view mode with a different window width set via auto-run commands, e.g. cm_100Percent 70|cm_50Percent, the file under the cursor could be moved out of the visible area (32764)
23.08.22 Fixed: When switching from a view mode with thumbnail view to another one with thumbnail view, the cursor position was lost (32/64)
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *white »

Problem confirmed in thumbnail view when resizing panel size. Animated gif

Shown in my video:
  • In a folder containing 5 files, enable thumbnail view
  • Select first file (selecting a different file gives a different result)
  • Click a button with command cm_50Percent -100
  • Click a button with command cm_50Percent
  • Now the [..] entry is selected
  • Press Tab to switch to other panel and press Tab again to return to the first panel
  • Now the third file is selected
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *ghisler(Author) »

2byblo
Not confirmed
2white
When you reduce the width of the panel to zero, there is no more concept of columns, so the cursor position is indeed lost.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *white »

ghisler(Author) wrote: 2022-10-16, 08:45 UTC 2white
When you reduce the width of the panel to zero, there is no more concept of columns, so the cursor position is indeed lost.
You mean sometimes and only in thumbnail view? And the Tab thing is normal too?
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *byblo »

ghisler(Author) wrote: 2022-10-16, 08:45 UTC 2byblo
Not confirmed
2ghisler(Author)
Usualy it is happening when a folder is filled with more than +- 100 files on a 1920x1080 screen.

Try again with a selected file from the middle of the list.
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *funkymonk »

TC 10.52rc3/x32/dark @ Win10x64

Well, I have the same problem as described in the OP.
And this one seems to be related: https://www.ghisler.ch/board/viewtopic.php?p=422566#p419772
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *ghisler(Author) »

I think I found out when this happens: When the number of columns changes, but the number of rows stays the same.
Example:
When there are 15 entries including the "go up" folder, then there are 3 rows when there are 5 or 6 columns. So when you use a button with e.g.
cm_50Percent 2
to slowly increase the number of columns, when it jumps from 5 to 6 the cursor jumps to a different file.
1. Can anyone reproduce that?
2. Are there other cases where the cursor changes position?
Author of Total Commander
https://www.ghisler.com
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *funkymonk »

ghisler(Author) wrote: 2022-10-17, 07:20 UTC I think I found out when this happens: When the number of columns changes, but the number of rows stays the same.
Example:
When there are 15 entries including the "go up" folder, then there are 3 rows when there are 5 or 6 columns. So when you use a button with e.g.
cm_50Percent 2
to slowly increase the number of columns, when it jumps from 5 to 6 the cursor jumps to a different file.
1. Can anyone reproduce that?
2. Are there other cases where the cursor changes position?
This is not the case for me. Following your steps, the same file keeps the focus independent from the number of rows/cols.

However, here is a similar effect that reproduces on 2 of my computers (with different image files):

1. Put 14 files (15 thumbs, including "go up") in a dir and activate thumbnail mode.
2. Make sure the panel shows 3 rows with 3 files in the last row.
3. Put cursor to the 2nd file in the 2nd row. This is the 7th file (or 8th entry incl. "go up").
4. Execute em_zoomIn until the last row shows more than 3 files. I use a shortcut C+* for that.
--> Now, the cursor switches to the 6th file (or 7th entry incl. "go up"). And this 6th file is at the 2nd file of the 2nd row.

Is this reproducible?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *ghisler(Author) »

2funkymonk
That's almost the same as the problem I described: In your case, the last row gets more columns (e.g. from 3 to 5) but there are not more rows. We will see whether my fix will work for you too tomorrow...
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *ghisler(Author) »

This should be fixed in RC4, please test it! I may have overlooked some cases, so please post a detailed report if you still have this problem.
Author of Total Commander
https://www.ghisler.com
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *byblo »

After a quick test, file selection seems fixed.

But still remaining the problem where the selected thumbnail gets out of view from the panel when a "cm_100Percent N" smaller value is used.

For instance, with a left panel in thumbnail mode and a quickview on the right panel, do cm_100Percent 50, then select a thumbnail at the end of the list, then do cm_100Percent 15. The quickview and file selected are still correct, but the selected thumbnail itself is out of view from the panel.

Maybe TC should try to verticaly scroll to the correct thumbnail under the cursor position right after a cm_100Percent N is used.
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *funkymonk »

TC 10.52RC4 x32 seems to fix the problem with the "jumping cursor". Thank you!

On my system I never had byblo's problem where the "selected thumbnail gets out of view from the panel".

In any case, I will report in case these problems show up here.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: file cursor: unwanted jumps while using cm_ZoomOut or cm_NPercent

Post by *ghisler(Author) »

I did not try to address the problem where the cursor can go out of view. This thread is only about the cursor going to a different file.
Author of Total Commander
https://www.ghisler.com
Post Reply