mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 21:24:21 +00:00
fix(whiteboard): iOS callout issues
This commit is contained in:
@@ -25,7 +25,7 @@ const HistoryStack = observer(function HistoryStack() {
|
||||
}, [])
|
||||
|
||||
React.useEffect(() => {
|
||||
requestIdleCallback(() => {
|
||||
requestAnimationFrame(() => {
|
||||
anchorRef.current
|
||||
?.querySelector(`[data-item-index="${app.history.pointer}"]`)
|
||||
?.scrollIntoView()
|
||||
|
||||
@@ -878,6 +878,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
|
||||
>
|
||||
{isBinding && <BindingIndicator mode="html" strokeWidth={strokeWidth} size={size} />}
|
||||
<div
|
||||
data-inner-events={!tlEventsEnabled}
|
||||
onWheelCapture={stop}
|
||||
onPointerDown={stop}
|
||||
onPointerUp={stop}
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
--shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
||||
|
||||
backface-visibility: hidden;
|
||||
|
||||
* {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
}
|
||||
|
||||
.dark-theme,
|
||||
@@ -651,6 +656,7 @@ button.tl-select-input-trigger {
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
gap: 0.5em;
|
||||
user-select: none;
|
||||
|
||||
&[data-focused='true'] {
|
||||
background-color: var(--ls-menu-hover-color, #f4f5f7);
|
||||
@@ -676,6 +682,10 @@ button.tl-select-input-trigger {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
[data-inner-events=false] * {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.tl-logseq-portal-container {
|
||||
@apply flex flex-col rounded-lg absolute;
|
||||
|
||||
|
||||
@@ -119,6 +119,9 @@ const tlcss = css`
|
||||
cursor: var(--tl-cursor) !important;
|
||||
box-sizing: border-box;
|
||||
color: var(--tl-foreground);
|
||||
-webkit-user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
|
||||
.tl-overlay {
|
||||
|
||||
Reference in New Issue
Block a user