一个仅影响左撇子用户的错误
A bug which affected only left handed users

原始链接: https://shkspr.mobi/blog/2026/07/a-bug-which-only-affected-left-handed-users/

作者发现其WordPress博客存在一个恼人的漏洞:用户在滚动页面时,“回复”链接会意外触发。经调查,作者意识到该问题仅影响左撇子用户,因为他们的拇指正好位于链接上方。 问题的根本原因是WordPress源代码在2017年添加的一个不必要的`touchstart`监听器。从历史角度看,这段代码旨在绕过浏览器曾用于区分点击和双击缩放手势的300毫秒延迟。然而,由于现代浏览器多年前已解决了这一延迟问题,这段代码不仅毫无用处,反而导致左撇子访客产生令人沮丧的误触操作。 作者没有等待WordPress的官方补丁,而是通过删除这些冗余代码解决了该问题。尽管作者打趣道,目前还没有什么HTML标签能将网站限制为“仅供右撇子使用”,但这一修复成功防止了网站为左撇子读者触发不必要的评论框弹出。

近期,Hacker News 上一场由左撇子用户遭受的 Bug 引发的讨论,凸显了现代科技与设计中普遍存在的“右撇子偏见”。 虽然这个 Bug 是讨论的导火索,但话题很快扩展到了对智能手机人体工程学更广泛的挫败感。许多用户表达了对当前“航空母舰般巨大”手机趋势的不满,并表示更青睐 iPhone Mini 这类紧凑机型。许多参与者指出,即使手大的用户也难以单手操作,往往需要借助指环扣或专门的软件设置等创意方案来解决。 除硬件外,讨论还涉及了导致误触的 UI 布局所带来的困扰——例如,“点赞”按钮的位置刚好位于用户滑动屏幕时拇指自然停靠的地方。尽管人们争论这些“暗黑模式”究竟是有意为之的营销策略以提升互动,还是单纯的设计拙劣,但许多用户表达了对软件界面过度偏向常规右撇子操作的疲惫。归根结底,这篇讨论反映出一种普遍的观点:现代数字工具未能顾及用户群体多样化的生理需求。
相关文章

原文

Verily, some of our brethren (and sistren) be afflicted with a sinister disposition. While the righteous scroll using the thumb of their right hand - as is good and proper - an accurs'd minority swing the other way.

Look, you try writing an interesting bug report without sounding like a clanker, OK!

I try to optimise my blog as much as possible. It may not look like much, but it has got it where it counts. I've made a lot of special modifications myself to the base WordPress install.

One of those modifications is reducing the amount of JavaScript in use to the bare minimum. Everything functions without it, but there are a few places where it helps - the most notable being comments.

That's why I was distressed when a loyal reader wrote in saying there was a bug on my site. When they were scrolling the page a comment box would suddenly appear and interrupt their browsing.

I scroll my own site a lot (probably more than is healthy) so why hadn't I noticed this bug?

Because I scroll with my right thumb and the bug reporter uses their left. The "reply" link which was being triggered is on the left side of the page. A bug which won't be triggered by righteous people but infuriating to those who will surely be left behind after The Rapture™.

To be fair, this bug was reported seven years ago - but I guess the WordPress team have been too busy cleaning up after their mad God-Emperor to take a look at it.

Back in 2017, a developer added a touchstart listener to link clicks. I don't really understand why. At one point in history, browsers couldn't be sure if a touch event was the start of a click or a double-tap to zoom. So firing an even when a touch occurred on a link sort of made sense to avoid a 300ms delay.

But that hadn't been the case for several years - as this 2013 blog post makes clear. Even in 2015 it was no longer an issue.

So why was this lefty-baiting code added? Not a clue.

Anyway, seven years after the bug was reported I committed a fix. It isn't the most sophisticated change to WordPress - merely deleting a couple of lines. But hopefully it will stop those strange and unusual mutants from complaining that their unnatural thumb-usage is accidentally triggering unwanted events on my website.

Sadly, there is as yet no way to prevent the corrupt from using our blessed sites. The WHAT-WG haven't seen fit to take on board my suggestion of <meta handed="right"> to keep out the unwanted and polluted. So, hopefully, this change will at least prevent them complaining.

Why, yes officer, I have had a glass or two of tonic wine. Why do you ask?

联系我们 contact @ memedata.com