diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-23 00:53:08 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-23 00:53:08 -0400 |
| commit | 72f614f023a4bac6a2f0b63a1b1a16e6f4545c7a (patch) | |
| tree | d4301e4ff97b783ab9795e5af48c14a38cfe886f /src/client/views/DocumentDecorations.tsx | |
| parent | b26e908122a5c9182bdb5135664bed5c1cd19ddb (diff) | |
fixed browser back after link navigation. simplified menus more. fixed jitter mode to be seeded. fixed menu gear for collections. .
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 43c7751fa..6e699bc68 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -134,7 +134,11 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> @action onSettingsClick = (e: PointerEvent): void => { if (e.button === 0 && !e.altKey && !e.ctrlKey) { let child = SelectionManager.SelectedDocuments()[0].ContentDiv!.children[0]; - while (child.children.length) child = child.children[0]; + while (child.children.length) { + const next = Array.from(child.children).find(c => !c.className.includes("collectionViewChrome")); + if (next) child = next; + else break; + } simulateMouseClick(child, e.clientX, e.clientY + 30, e.screenX, e.screenY + 30); } } |
