sapling/addons/shared
Jun Wu 395ef6998a ContextMenu: remove animation
Summary:
Animation can hurt productivity. Popular applications that draw context menu on
their own, like VS Code (Windows), FireFox, JetBrains Fleet, do not seem to use
animations for context menus. Chrome (and Edge) only recently starts showing
menu fading animation but I can see that fading animation hurting productivity.
I personally find fading in/out, zooming in/out annoying if the duration is
long too. The sliding animation can be useful to indicate what items are moving
to what destinations (so we added it to the edit stack UI).

Animations also varies on OS - the flashing behavior is a macOS behavior. On
Windows the OS behavior is to fade out the selected item. There are other
complexities on the fade out in theory - need to disable `:hover` and "pin"
selection, and need `pointer-events: none`.

For now, let's just remove the macOS-like context menu animations. This avoids
issues like hovering different items during the fade-out, CSS animation
out-of-sync with setTimeout, etc.

Reviewed By: evangrayk

Differential Revision: D52107206

fbshipit-source-id: 6d0eb1f198d5ae3aeb67bde8659f4a70c66941c2
2024-01-17 17:52:10 -08:00
..
__mocks__ shared: rename .js to .ts 2023-08-23 15:38:44 -07:00
__tests__ Add group util 2023-10-27 11:23:12 -07:00
github Re-sync with internal repository 2022-11-15 00:48:09 -08:00
patch isl: add error messages for failure cases of patchParser 2023-02-03 17:43:23 -08:00
SplitDiffView copy path part in file header 2023-08-15 15:44:31 -07:00
textmate-lib fix language name classifier 2023-09-12 15:28:43 -07:00
third-party/github Re-sync with internal repository 2022-11-15 00:48:09 -08:00
types types: support "dataRef" as file data type 2023-10-05 20:41:19 -07:00
CancellationToken.ts Introduce cancellation token 2023-08-18 15:05:35 -07:00
Comparison.ts Add option to compare diff with last submit 2023-11-08 11:48:01 -08:00
compat.ts Add AbortController for nodejs < 14 2023-02-07 17:45:05 -08:00
ContextMenu.css ContextMenu: remove animation 2024-01-17 17:52:10 -08:00
ContextMenu.tsx ContextMenu: remove animation 2024-01-17 17:52:10 -08:00
createTokenizedIntralineDiff.test.tsx Render syntax highlighting 2023-08-18 15:05:35 -07:00
createTokenizedIntralineDiff.tsx Render syntax highlighting 2023-08-18 15:05:35 -07:00
debounce.ts reviewstack: fix verify addons/ folder github ci (#730) 2023-10-05 09:34:39 -07:00
diff.ts diff: add mergeBlocks 2023-08-23 15:38:44 -07:00
Drawers.css Add UI zoom setting 2023-12-06 10:28:23 -08:00
Drawers.tsx Re-sync with internal repository 2022-11-15 00:48:09 -08:00
EnsureAssignedTogether.ts Re-sync with internal repository 2022-11-15 00:48:09 -08:00
fs.ts Re-sync with internal repository 2022-11-15 00:48:09 -08:00
hooks.tsx Extract useAutofocusRef 2023-09-22 13:21:25 -07:00
Icon.css Polish land styles 2023-12-08 13:24:19 -08:00
Icon.tsx Polish land styles 2023-12-08 13:24:19 -08:00
immutableExt.ts lint: fix various lint issues detected by newer version of linters 2024-01-04 14:04:27 -08:00
jest.config.ts shared: rename .js to .ts 2023-08-23 15:38:44 -07:00
KeyboardShortcuts.tsx Add shortcut to zoom in/out 2023-12-06 10:28:23 -08:00
lazyInit.ts Re-sync with internal repository 2022-11-15 00:48:09 -08:00
LRU.ts lru: isImmutable -> isValueObject 2023-05-02 20:29:43 -07:00
minimalDisambiguousPaths.ts Use minimal disambiguous paths when displaying uncommitted changes 2023-02-07 10:15:08 -08:00
OperatingSystem.ts shared: provide functions to test host OS in browser 2024-01-16 13:30:42 -08:00
package.json Change AI genereate commit message button icon 2023-09-08 12:58:21 -07:00
pathUtils.ts Don't use leading path sep for paths 2023-02-07 10:15:08 -08:00
RateLimiter.ts Re-sync with internal repository 2022-11-15 00:48:09 -08:00
rejectAfterTimeout.ts Re-sync with internal repository 2022-11-15 00:48:09 -08:00
testUtils.ts Include UI state in bug reports 2023-02-09 18:37:31 -08:00
tsconfig.json lint: fix various lint issues detected by newer version of linters 2024-01-04 14:04:27 -08:00
TypedEventEmitter.ts lint: fix various lint issues detected by newer version of linters 2024-01-04 14:04:27 -08:00
typeUtils.ts Include UI state in bug reports 2023-02-09 18:37:31 -08:00
utils.ts shared: add splitOnce utility 2023-12-04 15:30:39 -08:00
zoom.tsx Add UI zoom setting 2023-12-06 10:28:23 -08:00