MoOx / moox

MoOx personal website
https://moox.io/
38 stars 9 forks source link

“Middle click to open in new tab” broken #77

Closed notpushkin closed 10 months ago

notpushkin commented 4 years ago

It's a common gesture that some people (including me) are still using today – at least those who have middle button :) However, when I middle-click a link on moox.io, it either opens in current tab or opens both in current and a new tab. I'd be happy to send a PR but I'm not yet sure where to look at because I'm not familiar with the react-native-web stack. Bottom line is, a click handler for links should handle only left button (e.which == 1 || e.button == 0) and ignore the event otherwise.

MoOx commented 4 years ago

@notpushkin thanks for reporting. I will update my site for another engine (nextjs probably) soon, that should handle the issue (finger crossed). I could patch my current engine but I am too lazy to be honest 😂

MoOx commented 10 months ago

Fixed !