Terence Eden. He has a beard and is smiling.
Theme Switcher:

A bug which only affected left-handed users

· 7 comments · 550 words · Viewed ~20,473 times


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 on my phone's touchscreen 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 event 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?


Share this post on…

7 thoughts on “A bug which only affected left-handed users”

  1. “By faith did Abraham thumb left handed and it was accorded to him righteousness.” Left handed but tend to scroll left handed only on my phone but right handed on a tablet. English makes a lot of historically bigoted assumptions: right handedness, gender binaries, color and handedness based correctness and morality, and others. Most of these are still taken for granted, even fought over, in a time when reason should have long since supplanted superstition. Walking a mile in another’s shoes is just as valid today for empathy as it was 2000 years ago. I’m left handed, queer, ethnically a mutt, with mild visual impairment and bipolar. I continually struggle with American exclusionary assumptions in life most of us never question and often react poorly when they are. Thank you for making the effort and for the humor. I loved it.

    Reply

    1. As a lefty, i tend to use my right hand to work mouse or phone, for a similar reason to you - it allows me to use my dominant hand to jot notes down when this becomes necessary.

      Reply

  2. Truth to be told, I have faced this bug myself; and I'm right-handed. I just never bothered to report it. Mostly because reporting it requires more energy and time than I have available whenever I'm reading on the phone.

    Reply

  3. It happens in Fennec (Firefox) on Android on my Samsung tablet. Scrolling works fine, until it suddenly either zooms or shrinks the font, even though my right thumb is swiping the exact same spot it always does.

    Reply

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

See allowed HTML elements: <a href="" title="">
<abbr title="">
<acronym title="">
<b>
<blockquote cite="">
<br>
<cite>
<code>
<del datetime="">
<em>
<i>
<img src="" alt="" title="" srcset="">
<p>
<pre>
<q cite="">
<s>
<strike>
<strong>

To respond on your own website, write a post which contains a link to this post - then enter the URl of your page here. Learn more about WebMentions.