Taskbar 10: reordering items in centered taskbar shifts all items to the right #1009
Replies: 1 comment 2 replies
-
Hi Yeah, it's funny actually. I looked at it a bit, I think I know why it happens: I compute the necessary width for the taskbar based on the location of the first and last buttons. But, when you shuffle buttons, in particular the first and the last one, the width becomes smaller, so the whole thing shifts right, because it thinks it needs less width. Yeah, so in 5 minutes I sketched some complicated workaround, didn't work. Now I have this idea: since when you shuffle items, you have to have the left mouse button pressed, I can refrain from updating the width when the left mouse button is pressed. When dragging taskbar buttons, the total width doesn't actually have any reason to change, as you can only shuffle buttons, not drag them away (to other taskbars, for example, etc). Tried this, seems to work fine. Only thing, I notice that when moving windows from one monitor to the other, the taskbar doesn't update, since the mouse button is pressed while dragging. Of course. So I changed it to filter (not update the necessary width) when the mouse button is pressed and the focused window is the taskbar. That should cover it, right?
Idk, for me it works fine, after the taskbar finishes toggling auto hide, it should refresh itself and everything should be where it is supposed to be.
This is good.
This should be fixed with the patch I mentioned above.
Again, over here it seems to work, pinning items from the Windows 10 Start menu to the taskbar just fine. Anyway, before pushing the update, I will test it a bit more I guess. I am trying to think whether I miss any case with the logic above. Here's a version, if you want to test as well: Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment:
ExplorerPatcher version 22000.493.42.30
Issues and notes:
I'll be happy to provide more information if needed. Thank you so much for this amazing app and I hope this is clear. :)
Beta Was this translation helpful? Give feedback.
All reactions