Don't hijack my mouse pointer

(ruky.me)

38 points | by rukshn 2 hours ago ago

45 comments

  • matteason 10 minutes ago

    Google's design blog has a particularly egregious version of this: https://design.google/

    The mouse blob morphs into the background of any buttons you hover over, which is technically impressive but annoying in practice

    • reddalo 6 minutes ago

      Wow, so much for "Google Design". It's probably one of the worst designed pages I've seen recently.

    • sozforex 8 minutes ago

      wow, this is one of the worst pages I've seen

  • venzaspa an hour ago

    Not nearly as nasty as scroll hijacking so the page moves at a different speed than what I've instructed it to move at. Or pastejacking - when you're trying to copy a piece of text and the page makes you grab an entirely different string to what you'd highlighted and selected.

    • T_Potato 27 minutes ago

      Oh when you open an app to do a task and you get 5 new pop ups asking you to let them show you the new tool. Like, no. I don't have the bandwith right now. i'ld love to look at them but you chose the worse time. And then you can never go back to see what the tutorial was on the new feature.

    • newscombinatorY an hour ago

      I'd add preventing text selection, right-clicking or pasting from the clipboard to the list. I hate when websites do that.

      • stvltvs an hour ago

        Especially egregious when preventing pasting into a password field. Do they want me to have a weak password so that I can manually type it in instead of pasting it from a password manager?

      • michaelcampbell 22 minutes ago

        There's an old, but good, set of browser plugins called "don't fuck with paste" that helps a little, at least.

        • antiframe 14 minutes ago

          Setting dom.event.clipboardevents.enabled in about:config to false will prevent sites from messing with cut and paste.

      • LorenDB 19 minutes ago

        Brave actually added a force paste option recently for such cases.

    • smallmancontrov an hour ago

      Focus-stealing, too! Especially bad with Microsoft products. I can picture exactly what happened: a thousand complaints of "I lost a window in the heaping mess of open work on my desktop" each turned into a ticket to add Just One More focus steal until the first minute of a Microsoft-powered desktop's existence is various projects fighting in a brawl to repeatedly steal focus from one another.

      It was a major win for the internet that it took this power away from the application layer.

      • datenyan an hour ago

        I have often thought about trying to figure out whatever Win32 API is responsible for focus stealing and neuter it down to something akin to

          void steal_focus_when_user_is_least_expecting() {
            // stub, much better :)
          }
        
        It is the single most frustrating desktop computing experience.
        • bluGill 6 minutes ago

          Problem it isn't an API, it is just unexpected consequences of how a few things work. Fixing this just isn't easy as the simple attempts will break even more than the frustrating thing you are trying to fix - and thus be worse.

          That said, Microsoft should have fixed this long ago - it is hard but a few people can do it given a few years to work through all the special cases.

        • dleslie 7 minutes ago

          Not just frustrating, it's a security hole. Stealing focus means a user may expect to be typing a password but find it's inputted somewhere they did not expect.

    • shultays 12 minutes ago

      Spacebar hijacking, it is how I scroll webpages

    • LorenDB 19 minutes ago

      Or right-click hijacking. e.g. Discord's web app, where I might want to right click a link in a message to copy it. But instead, Discord forces their own right-click menu with no such option.

    • cmiles74 22 minutes ago

      Slack does this with links (they all point to Slack instead of the URL in the message) and it drives me nuts.

      • pezgrande 14 minutes ago

        Same in Discord, crappy apps.

  • juancn 20 minutes ago

    My other pet peeve is sites that override text selection and add a popup or something.

    I select long text when I'm reading, I use it for focus and to keep track where I was if I need to switch to some other task in the middle.

    In general, excessive customization is a net negative if it breaks expectations.

  • clickety_clack 36 minutes ago

    I remember when the internet was wild, young and fun, and this was something people did all the time. If you’re building Salesforce or SAP or Microsoft Word you should avoid it, but if you’re making a fun and weird website you should go to town.

    • tosti 6 minutes ago

      Those overgrown webapps do indeed avoid changing the pointer. But the back button is their special place to go to town with. Businesses pay enormous amounts of money for a piece of crap that breaks the effing back button.

    • thesuitonym 26 minutes ago

      Yeah, it's not really that it's difficult and AI has made it easier. It's super easy, it's just anybody who knows what they're doing learned that it's bad decades ago.

      Vibe coding didn't make it easier to change the cursor, it made it easier for incompetent people to write software.

  • xnx an hour ago

    I can count on my left hand the number of acceptable times to change my cursor motion or shape. This is one: https://neal.fun/cursor-camp/

    • chrismorgan an hour ago

      Your choice of wording made me wonder if you have a different number of fingers on left and right hands.

  • nfbs 21 minutes ago

    I find it a bit surprising that there is no option in a browser to stop this kind of behavior. There is even a suggestion on mozzila.org.

    With this option placed it would just be another 'fun thing' you don't need to mind.

    • manarth 11 minutes ago

      The cursor icon is useful as an indicator of function - e.g. the "I" styled character over text (where you can select/highlight then copy), and the "hand" icon to indicate a link.

      Being able to change the cursor to indicate a behaviour can be beneficial, especially with dynamic DOM elements.

      Going rogue with mouse cursor icons is a UX minefield though, and it's usually done without any UX assessment of the impact.

  • frereubu 2 hours ago

    > For example it can be as simple as this, to something completely unacceptable as this.

    I can't see any difference between these in terms of UX - I got annoyed just looking at them.

    • dspillett 14 minutes ago

      The bad example has significant lag compared to the good.

      Also, except when the pointer is over something, it isn't actually a pointer so you might not be able to position it precisely onto something. While trying to position it over something small⁰ it is going to cover the target making the process partially guesswork.

      --------

      [0] ignoring for a moment that something so small is likely bad UX in itself, like the single-pixel¹ border drag targets and scrollbars found on many things these days

      [1] see similar discussions over in the thread about older UIs at https://news.ycombinator.com/item?id=48104428 for this and related issues - even when we have far fewer pixels on the screen a single pixel wide/tall/both target was often considered bad form.

  • noiv 42 minutes ago

    Lol, once made a game hiding mouse pointer temporarely when users did not behave :)

  • AlienRobot 16 minutes ago

    That's not "hijacking your mouse pointer" that's just changing the cursor.

    Absolutely change my cursor. But to something that looks cool, like a dragon or a sword. Not to a circle.

    • tosti 12 minutes ago

      This. Hijacking the pointer in the browser is also possible. There are webgl games that do it.

  • T_Potato 29 minutes ago

    I use a very large mouse cursor because I hate when I have to search for the thing. Sometimes during meetings I get brain dead comments about it. I make it bigger in spite when I get a comment about it. Then in meetings they complain that they can't find their mouse pointer.... /rant

  • sixothree 20 minutes ago

    Edge browser repositions your mouse cursor when you use the built-in screenshot tool.

  • crest 27 minutes ago

    Instant tab closed.

  • Bender 2 hours ago

    ublock may be able to help, perhaps something like

        ##*:style(cursor: auto !important)
    
    Does anyone have a site to test it on?
  • teddyh an hour ago

    > For example, making it slightly tilted because it was easier to draw on old screens.

    No. Some older systems actually had straight pointers. The slightly tilted design is, I assume, a result of wanting to point to something while still being able to see what is to the immediate left of the pointer; useful for left-to-right text.

  • spacebacon 2 hours ago

    Unless it’s Ratty

  • timw4mail an hour ago

    Wait...what year is it again?

    • smallmancontrov an hour ago

      Wake up babe, it's 1999 and you need to install Yahoo Toolbar into Netscape Navigator to avoid the dreaded Y2K bug!

  • Theodores an hour ago

    I like it how the author says how busy he is and how he finally snatched a few minutes out of this busy life to bring us this edict: don't hijack mouse pointers, or else!

    What next, don't use blink or marquee elements?

    Or else!

    Standard issue cursors are not that great in all environments, sometimes making the cursor massively big or doing other daft things to it make sense. It is all about context and golden rules don't help.

    • 26 minutes ago
      [deleted]