You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Skip the overlay-scrollbar refresh during an active sidebar-resize drag: reading the scroll metrics forces a synchronous reflow every pointermove (resize just invalidated the metrics cache).
1231
-
// The drag's `end` phase runs one final `_relayout` that refreshes them, and a horizontal drag changes neither track's thumb until release anyway.
Copy file name to clipboardExpand all lines: scribe-ui/js/controls/panels.js
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,8 @@ function clearPageClipboard() {
90
90
* @param {(n: number) => void} cfg.onSelect - Called with the page index when a thumbnail is clicked.
91
91
* @param {(pageIndices: Array<number>) => void} [cfg.onExtract] - Called with the page indices to open as a new document.
92
92
* @param {(at: number) => void} [cfg.onInsertFromFile] - Called with the gap index at which to insert pages picked from a file.
93
-
* @param {(width: number) => void} [cfg.onResize] - Called with the panel's current visible width in px (0 when hidden), so the host can inset the document to the remaining area.
93
+
* @param {(width: number, phase?: 'start'|'move'|'end') => void} [cfg.onResize] - Called with the panel's current visible width in px (0 when hidden).
94
+
* `phase` is set on handle-drag reports and absent on non-drag reports (view shown or hidden).
/** Restore the text layers hidden by `startInteractionTextHide`; sharing the scroll-hide restore keeps either hide source from leaving a group stuck hidden. */
1076
+
endInteractionTextHide(){
1077
+
this._endScrollTextHide();
1078
+
}
1079
+
1052
1080
/**
1053
1081
* Scroll the viewport by a pixel delta. Positive `deltaY` follows a downward drag (revealing content above).
1054
1082
* The old stage model moved `stage.y` (negative-of-scroll) by `+delta`, so native scroll uses the inverse sign.
0 commit comments