HeadlinesBriefing favicon HeadlinesBriefing.com

WordPress Bug Affects Left-Handed Users

Hacker News •
×

A WordPress site owner discovered and fixed a seven-year-old bug that exclusively impacted left-handed users. The issue caused comment boxes to unexpectedly appear while scrolling, disrupting the user experience. The problem stemmed from a touchstart listener added to link clicks in 2017, intended to prevent a delay in touch event handling. However, this workaround became obsolete years ago.

The bug was only noticed because a left-handed reader reported it. The site owner, who scrolls with their right thumb, never encountered the issue. The "reply" link, triggering the bug, was located on the left side of the page, making it susceptible to activation by left-handed users scrolling with their left thumb.

The fix involved a minimal change: deleting two lines of JavaScript from the WordPress installation. This resolved the problem without affecting the site's core functionality, which relies on minimal JavaScript. The author humorously notes the lack of native browser support for such specific user preferences.