Page MenuHomePhabricator

Don't allow the middle mouse button to start an inline comment
ClosedPublic

Authored by epriestley on Nov 24 2018, 3:02 PM.
Tags
None
Referenced Files
F18984990: D19836.id47361.diff
Mon, Nov 17, 12:50 PM
F18929233: D19836.id47361.diff
Sun, Nov 9, 11:29 PM
F18737088: D19836.id.diff
Oct 1 2025, 8:54 AM
F18733858: D19836.id.diff
Sep 30 2025, 10:43 PM
F18570897: D19836.id.diff
Sep 10 2025, 4:12 AM
F18568995: D19836.id47376.diff
Sep 10 2025, 12:33 AM
F18568993: D19836.id47361.diff
Sep 10 2025, 12:33 AM
F18566890: D19836.diff
Sep 9 2025, 2:59 PM
Subscribers
None

Details

Summary

Ref T13216. See PHI985. When you click a line number to start an inline comment, we intend to initiate the action only if you used the left mouse button (desktop) or a touch (tablet/device).

We currently have a not right condition for doing this, but it only excludes right clicks, not middle clicks (or other nth-button clicks). The not right condition was sligthly easier to write, but use an is left condition instead of a not right condition.

Test Plan
  • In Safari, Firefox and Chrome:
    • Used left click to start an inline.
    • Used middle click to do nothing (previously: started an inline).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
webroot/rsrc/externals/javelin/core/Event.js
146

I'm not 100% this definition works in old IE, but it's the best guess I could dig up from a few minutes of Googling and we don't really support old IE anyway.

This revision is now accepted and ready to land.Nov 26 2018, 5:18 PM
This revision was automatically updated to reflect the committed changes.