8

Why does the mouse cursor jump a few pixels if you right-click on the Start butt...

 2 years ago
source link: https://devblogs.microsoft.com/oldnewthing/20210511-00/?p=105203
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Why does the mouse cursor jump a few pixels if you right-click on the Start button?

Raymond Chen

Raymond

May 11th, 2021

Some time ago, I noted that mouse cursor jumps a few pixels if you click on the very bottom row of pixels on the taskbar. I noted that this is done to make it possible to click on the very bottom row of pixels, even though they are technically a border, in order to operate on the button immediately above them. Otherwise, the button-down code sees that the mouse is outside the button and cancels the button operation (click or drag).

If you right-click on the Start button, the mouse cursor jumps a few pixels up and to the right. Is this done to solve the same problem?

No, the problem doesn’t apply here because the right mouse button does not have the same cancellation behavior as the left mouse button. There’s a different reason for moving the mouse cursor.

The mouse cursor moves up and to the right so that it is positioned over the last menu item. That way, you can right-click followed by left-click to activate the bottom menu item.

This means that the bottom item on the Start button’s context menu has a special status: It’s the one you can activate quickly by performing a right-click left-click.

Tagged Other

5 comments

Log in to join the discussion.

  • Mark Richards

    May 11, 2021 7:15 am

    As one of those people who has, since 1995, despised having the start button on the bottom of the screen, I am grateful to the shell team for letting me move it to the side, where on my ultrawide screen it uses up less screen area. But that means that for me the special-status menu item is the one at the top of the right-click menu, which for regular users would be the hardest to reach (Apps and Features). I feel like this particular feature is maybe too undiscoverable? But also I’ve never wanted to move the mouse, click, click again to achieve what WIN+D can do. If only it were “Windows Mobility Center” or one of the things in that menu I use! Still, these little subtle UI tweaks are nice to have and fun to learn about!

  • Brian Boorman

    May 11, 2021 7:27 am

    Having never noticed this I had to try it. Worked. Interesting to know.

    Then I tried the “click bottom of taskbar” and noticed that it did *not* work. It does activate the program icon, but the mouse doesn’t jump up the few pixels. So I clicked back to the referenced blog post and noticed that it’s from 2015. So the behavior of the mouse on the taskbar changed sometime between then and now.

  • M. W.

    May 11, 2021 7:36 am

    I know of a different but related effect that can be confusing. If you put the cursor at the very bottom of the screen and click anywhere within the horizontal bounds of the notification area/tray, it will send the click to the last tray item that was activated regardless of what X position the cursor is actually at. 🤔

    As for the start-button effect, I’m not seeing it, but that might be because I don’t have a start-button; I remove it with 7+ Taskbar Tweaker. 🤷 (I tried restoring the button but it still didn’t jump; maybe this only works if you’re using a theme and/or Windows 10—I use the Classic Windows non-theme in Windows 7.)

  • Entegy

    May 11, 2021 1:23 pm

    Sadly, this doesn’t seem to move the cursor enough when the taskbar is on the side of the screen. I am noticing now that the cursor moves to the side by a few pixels, but it also needs to move down a few pixels to reach the top item of the menu.

  • Here’s another useless piece of “knowledge” which I saw on every computer having installed Vista and using the Aero theme with enabled transparency.

    If you hover the start button and wait for the “Start” tooltip to appear, it’ll add a “shadow” to the left side behind the taskbar. It’ll go away if you re-hover the button.

    Probably some kind of composition error.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK