Timer and negative values for BreadcrumbDelayButton

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Timer and negative values for BreadcrumbDelayButton

Post by *Sombra »

I'm testing a different way for works with breadcrum. If there is a negative value for "BreadcrumbDelayButton", in this case, the menu is shown directly (without a necessary click in button).
These are the settings I'm using now for test:

Code: Select all

BreadcrumbDelayButton=-300
BreadcrumbSeparator=50
BreadcrumbDelayDir=0
BreadcrumbdelayPlugin=400
As you can see in this case, menu is shown after 300 ms when mouse is over the current dir header.

The main problem is when I do click in a low directory and mouse is over current dir (still). The timer is NOT restarted, then after one click, TC change to a directory and the dropdown menu for breadcrumb is shown too. Many times I have not the enough time for move the mouse out of the current dir header for prevent this behaviour.

For test it, you can change the key "BreadcrumbDelayButton" to -5000. (for simulate a slowmotion)
  • Go to a driectory c:\DIR1\dir2\dir3\*.*
  • Take a "stopwatch" in your hand :mrgreen:
  • Put the mouse over Dir1.
  • Wait for 4 seconds.
  • Now, press over "dir1" for change to directory in panel.
  • Remain the mouse one second more over dir1.
Popup menu appears after ONE second.

As suggestion: Could be changed this behaviour for restart the timer after one click?
Or maybe... I don't know that would be better; previous suggestion or Stop the timer until mouse is out of the current directory.
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will consider it. Maybe the timer should be stopped altogether when the user clicks?
Author of Total Commander
https://www.ghisler.com
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hmm... Perhaps different opinions from users should be taken into account.
IMHO restart the timer after a click in breadcrumb would be better.
For example if the user decide change to another directory, then he should move the mouse out of the current directory and back again for show the dropdown for a different folder.
I can read English, but... I write like Tarzan. (sorry)
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I'm not sure if there is really a huge difference between mouse press, then stop the timer and mouse click and then stop the timer (current behavior). It's worth a try though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

For now I have changed it like this: When the user clicks on the path part while the dropdown isn't open yet, the timer will be re-started, but with an extra 1 second delay until it opens again. This way the user has more than enough time to move away from the path.
Author of Total Commander
https://www.ghisler.com
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

history.txt wrote:10.05.09 Fixed: Breadcrumb bar, BreadcrumbDelayButton<0: When user clicks on a path part, wait 1 second longer until opening the dropdown menu of that path to give user the chance to move the mouse cursor away
Seems works quite well with this new method. Thanks :)
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice to hear that! Please let me know if you encounter any similar problems.
Author of Total Commander
https://www.ghisler.com
Post Reply