Hacker News new | past | comments | ask | show | jobs | submit login

There's many things to love about the design, but the fact that they use actual anchor tags and override the default behavior with JS is extremely frustrating and makes opening in a new tab impossible. When I'm looking for parts I tend to want to open up several categories or parts across a few tabs and they make it impossible. Horizontal scrolling is also remapped to scroll vertically as well, which breaks the trackpad swipe behavior for going forwards and backwards on MacOS.



> makes opening in a new tab impossible

This has been happening to so many commerce sites for the last several years. It's infuriating. They absolutely hate the idea that you might want to look at several items at once.

Anyway, in Firefox I kludge around it by right clicking the tab I'm on, selecting Duplicate Tab, then clicking the item in that new tab. Sometimes you gotta duplicate a lot that way, but it usually works.


> They absolutely hate the idea that you might want to look at several items at once.

B&H's bot detection will trigger on this from time to time.


Another option in Firefox: right clicking and selecting Open in new tab works on most (but not all) links in McMaster.


> There's many things to love about the design, but the fact that they use actual anchor tags and override the default behavior with JS is extremely frustrating and makes opening in a new tab impossible.

I've only ever dabbled in webdev, but I thought this _was_ the right way to do it? Having an actual anchor tag with an href that overrides onclick means that your fancy javascripty partial page load works, but so does middle click and regular clicking without javascript. Is there some other way that's even more compatible?

Middle-clicking everything on mcmaster's site seemed to work for me in firefox.


They're most of the way to doing it correctly! What's missing is a few edge cases, such as ensuring the click is happening without modifier keys.

This is how react-router handles it: https://github.com/remix-run/react-router/blob/main/packages...


What is it that doesn’t work?

I started at the home page and could middle click on both images and blue text, down to individual items. (Using Chrome from Linux.)


Oh this is interesting; right click and "open in new tab" seems to work, but cmd+click (my preferred method) doesn't. They must have something else going on that interferes with it, very strange.


It all works on my machine. Firefox/Win11. Not sure what's happening for you.


I'm on MacOS; I think I found the issue in the code they use for navigation. It's checking for ctrlKey on the MouseEvent and not MetaKey as well, which is what CMD maps to on MacOS. I might email them about it.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: