drawnui-react 0.1.0-preview.8 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +229 -22
  2. package/SKIPPED.md +38 -29
  3. package/dist/controls/AnimatedFramesRenderer.d.ts +9 -0
  4. package/dist/controls/AnimatedFramesRenderer.js +18 -1
  5. package/dist/controls/DrawnGame.d.ts +44 -0
  6. package/dist/controls/DrawnGame.js +82 -0
  7. package/dist/controls/GridStructure.d.ts +25 -3
  8. package/dist/controls/GridStructure.js +81 -5
  9. package/dist/controls/SkiaBackdrop.d.ts +8 -2
  10. package/dist/controls/SkiaBackdrop.js +42 -14
  11. package/dist/controls/SkiaButton.d.ts +17 -3
  12. package/dist/controls/SkiaButton.js +26 -8
  13. package/dist/controls/SkiaCarousel.d.ts +22 -3
  14. package/dist/controls/SkiaCarousel.js +85 -9
  15. package/dist/controls/SkiaCheckbox.d.ts +0 -1
  16. package/dist/controls/SkiaCheckbox.js +2 -7
  17. package/dist/controls/SkiaDrawer.d.ts +15 -0
  18. package/dist/controls/SkiaDrawer.js +42 -7
  19. package/dist/controls/SkiaEditor.d.ts +51 -2
  20. package/dist/controls/SkiaEditor.js +292 -58
  21. package/dist/controls/SkiaGif.d.ts +7 -0
  22. package/dist/controls/SkiaGif.js +25 -4
  23. package/dist/controls/SkiaImage.d.ts +10 -0
  24. package/dist/controls/SkiaImage.js +80 -19
  25. package/dist/controls/SkiaLabel.d.ts +200 -11
  26. package/dist/controls/SkiaLabel.js +925 -93
  27. package/dist/controls/SkiaLabelFps.d.ts +12 -0
  28. package/dist/controls/SkiaLabelFps.js +35 -0
  29. package/dist/controls/SkiaLayout.d.ts +89 -9
  30. package/dist/controls/SkiaLayout.js +397 -23
  31. package/dist/controls/SkiaLottie.js +5 -3
  32. package/dist/controls/SkiaProgress.d.ts +2 -1
  33. package/dist/controls/SkiaProgress.js +8 -5
  34. package/dist/controls/SkiaRadioButton.d.ts +2 -0
  35. package/dist/controls/SkiaRadioButton.js +16 -4
  36. package/dist/controls/SkiaRichLabel.d.ts +1 -1
  37. package/dist/controls/SkiaRichLabel.js +11 -1
  38. package/dist/controls/SkiaScroll.d.ts +86 -7
  39. package/dist/controls/SkiaScroll.js +361 -40
  40. package/dist/controls/SkiaScrollBar.d.ts +27 -0
  41. package/dist/controls/SkiaScrollBar.js +51 -2
  42. package/dist/controls/SkiaShaderCarousel.d.ts +11 -1
  43. package/dist/controls/SkiaShaderCarousel.js +27 -5
  44. package/dist/controls/SkiaShape.d.ts +15 -2
  45. package/dist/controls/SkiaShape.js +57 -10
  46. package/dist/controls/SkiaShell.d.ts +282 -0
  47. package/dist/controls/SkiaShell.js +972 -0
  48. package/dist/controls/SkiaSlider.d.ts +20 -2
  49. package/dist/controls/SkiaSlider.js +61 -7
  50. package/dist/controls/SkiaSprite.d.ts +4 -0
  51. package/dist/controls/SkiaSprite.js +27 -11
  52. package/dist/controls/SkiaSvg.d.ts +4 -0
  53. package/dist/controls/SkiaSvg.js +28 -4
  54. package/dist/controls/SkiaSwitch.d.ts +0 -1
  55. package/dist/controls/SkiaSwitch.js +4 -8
  56. package/dist/controls/SkiaToggle.d.ts +25 -5
  57. package/dist/controls/SkiaToggle.js +58 -5
  58. package/dist/controls/SnappingLayout.d.ts +12 -1
  59. package/dist/controls/SnappingLayout.js +21 -2
  60. package/dist/controls/TooltipStyle.d.ts +52 -0
  61. package/dist/controls/TooltipStyle.js +88 -0
  62. package/dist/core/Accessibility.d.ts +162 -11
  63. package/dist/core/Accessibility.js +882 -22
  64. package/dist/core/Animators.d.ts +37 -1
  65. package/dist/core/Animators.js +102 -9
  66. package/dist/core/Canvas.d.ts +307 -8
  67. package/dist/core/Canvas.js +1202 -66
  68. package/dist/core/ControlStyle.d.ts +2 -0
  69. package/dist/core/ControlStyle.js +2 -0
  70. package/dist/core/DesignerActions.d.ts +32 -0
  71. package/dist/core/DesignerActions.js +68 -0
  72. package/dist/core/Easing.d.ts +12 -1
  73. package/dist/core/Easing.js +25 -1
  74. package/dist/core/Gestures.d.ts +86 -2
  75. package/dist/core/Gestures.js +184 -4
  76. package/dist/core/Hover.d.ts +51 -0
  77. package/dist/core/Hover.js +140 -0
  78. package/dist/core/ImageEffects.d.ts +2 -0
  79. package/dist/core/ImageEffects.js +2 -0
  80. package/dist/core/KeyboardManager.d.ts +40 -0
  81. package/dist/core/KeyboardManager.js +98 -8
  82. package/dist/core/PopupWindows.d.ts +94 -0
  83. package/dist/core/PopupWindows.js +207 -0
  84. package/dist/core/Props.d.ts +11 -0
  85. package/dist/core/Props.js +44 -0
  86. package/dist/core/ScrollAnimators.d.ts +6 -0
  87. package/dist/core/ScrollAnimators.js +16 -1
  88. package/dist/core/Shaping.d.ts +40 -0
  89. package/dist/core/Shaping.js +224 -0
  90. package/dist/core/SkiaControl.d.ts +306 -13
  91. package/dist/core/SkiaControl.js +681 -75
  92. package/dist/core/SkiaEffect.d.ts +29 -1
  93. package/dist/core/SkiaEffect.js +78 -16
  94. package/dist/core/SkiaImageManager.d.ts +101 -18
  95. package/dist/core/SkiaImageManager.js +318 -63
  96. package/dist/core/Styles.js +7 -1
  97. package/dist/core/Super.d.ts +33 -2
  98. package/dist/core/Super.js +58 -12
  99. package/dist/core/TextInputProxy.d.ts +31 -1
  100. package/dist/core/TextInputProxy.js +97 -15
  101. package/dist/core/Tooltips.d.ts +71 -0
  102. package/dist/core/Tooltips.js +205 -0
  103. package/dist/core/Types.d.ts +11 -1
  104. package/dist/core/Types.js +32 -1
  105. package/dist/core/ViewsAdapter.d.ts +7 -2
  106. package/dist/core/ViewsAdapter.js +10 -3
  107. package/dist/index.d.ts +8 -0
  108. package/dist/index.js +8 -0
  109. package/dist/react/SkiaShell.d.ts +8 -74
  110. package/dist/react/SkiaShell.js +163 -475
  111. package/dist/react/index.d.ts +48 -4
  112. package/dist/react/index.js +210 -43
  113. package/dist/react/reconciler.d.ts +32 -0
  114. package/dist/react/reconciler.js +71 -40
  115. package/dist/vite/index.d.ts +9 -0
  116. package/dist/vite/index.js +36 -3
  117. package/package.json +103 -5
@@ -1,6 +1,6 @@
1
1
  import { SkiaControl } from "../core/SkiaControl";
2
2
  import { Super } from "../core/Super";
3
- import { ResolveControlStyle } from "../core/ControlStyle";
3
+ import { DefaultAccent, ResolveControlStyle } from "../core/ControlStyle";
4
4
  import { ScaledSize } from "../core/Types";
5
5
  /**
6
6
  * Mirrors DrawnUi SkiaProgress (SkiaRangeBase): a horizontal track with a progress trail, per-style track height and
@@ -33,9 +33,9 @@ export class SkiaProgress extends SkiaControl {
33
33
  set Max(v) { this.max = v; this.Update(); }
34
34
  /** Unset = per-style palette. */
35
35
  get TrackColor() { return this.trackColor ?? SkiaProgress.Palette(this.UsingControlStyle).track; }
36
- set TrackColor(v) { this.trackColor = v; this.Update(); }
36
+ set TrackColor(v) { this.trackColor = v; this.UpdateDraw(); }
37
37
  get ProgressColor() { return this.progressColor ?? SkiaProgress.Palette(this.UsingControlStyle).progress; }
38
- set ProgressColor(v) { this.progressColor = v; this.Update(); }
38
+ set ProgressColor(v) { this.progressColor = v; this.UpdateDraw(); }
39
39
  /** C# ResolvedTrackColor / ResolvedProgressColor / track heights per style. */
40
40
  static Palette(s) {
41
41
  switch (s) {
@@ -43,7 +43,7 @@ export class SkiaProgress extends SkiaControl {
43
43
  case "Material": return { track: "#E8EAED", progress: "#2196F3", height: 4, radius: 2 };
44
44
  case "Material3": return { track: "#E6E0E9", progress: "#6750A4", height: 4, radius: 2 };
45
45
  case "Windows": return { track: "#F3F2F1", progress: "#0078D4", height: 6, radius: 3 };
46
- default: return { track: "#D7DBE0", progress: "#DC143C", height: 8, radius: 4 };
46
+ default: return { track: "#D7DBE0", progress: DefaultAccent, height: 8, radius: 4 };
47
47
  }
48
48
  }
49
49
  get Ratio() { return this.max > this.min ? Math.max(0, Math.min(1, (this.value - this.min) / (this.max - this.min))) : 0; }
@@ -76,5 +76,8 @@ export class SkiaProgress extends SkiaControl {
76
76
  }
77
77
  paint.delete();
78
78
  }
79
- DefaultAccessibilityLabel() { return `${Math.round(this.Ratio * 100)}%`; }
79
+ /** Value between Min and Max, read as "65%"; the name is the app's AccessibilityLabel only (drawnui-cross 6c). */
80
+ get AccessibilityValue() {
81
+ return { Now: this.value, Min: this.min, Max: this.max, Step: 0, Text: `${Math.round(this.Ratio * 100)}%` };
82
+ }
80
83
  }
@@ -26,6 +26,8 @@ export declare class SkiaRadioButton extends SkiaToggle {
26
26
  private dot?;
27
27
  ApplyProperties(): void;
28
28
  protected DefaultAccessibilityLabel(): string | undefined;
29
+ /** A disposed radio leaves its group, and an empty group goes: the module-level registry keeps no page alive. */
30
+ protected OnDisposing(): void;
29
31
  private UpdateGroup;
30
32
  protected OnToggledChanged(): void;
31
33
  ProcessGestures(args: SkiaGesturesParameters, apply: GestureEventProcessingInfo): SkiaControl | null;
@@ -1,3 +1,4 @@
1
+ import { DefaultAccent } from "../core/ControlStyle";
1
2
  import { Colors, Thickness } from "../core/Types";
2
3
  import { SkiaLayout } from "./SkiaLayout";
3
4
  import { SkiaLabel } from "./SkiaLabel";
@@ -13,7 +14,7 @@ export class SkiaRadioButton extends SkiaToggle {
13
14
  groupKey;
14
15
  ViewOn;
15
16
  ViewText;
16
- static DefaultAccent = "#DC143C";
17
+ static DefaultAccent = DefaultAccent;
17
18
  static DefaultOutline = "#8E959D";
18
19
  constructor(text = "") {
19
20
  super();
@@ -37,8 +38,7 @@ export class SkiaRadioButton extends SkiaToggle {
37
38
  return table[this.UsingControlStyle]?.[name];
38
39
  }
39
40
  CreateDefaultContent() {
40
- if (this.MinimumHeightRequest < 0)
41
- this.MinimumHeightRequest = 24;
41
+ this.SetMinimumContentHeight(24);
42
42
  const s = this.usingStyle;
43
43
  const size = s === "Unset" ? 18 : 20;
44
44
  const box = new SkiaLayout();
@@ -121,6 +121,16 @@ export class SkiaRadioButton extends SkiaToggle {
121
121
  }
122
122
  DefaultAccessibilityLabel() { return this.text || undefined; }
123
123
  // ---- group (C# RadioButtons.All) ----
124
+ /** A disposed radio leaves its group, and an empty group goes: the module-level registry keeps no page alive. */
125
+ OnDisposing() {
126
+ if (this.groupKey) {
127
+ const set = groups.get(this.groupKey);
128
+ set?.delete(this);
129
+ if (set?.size === 0)
130
+ groups.delete(this.groupKey);
131
+ }
132
+ super.OnDisposing();
133
+ }
124
134
  UpdateGroup() {
125
135
  if (this.groupKey)
126
136
  groups.get(this.groupKey)?.delete(this);
@@ -145,8 +155,10 @@ export class SkiaRadioButton extends SkiaToggle {
145
155
  super.OnToggledChanged();
146
156
  }
147
157
  ProcessGestures(args, apply) {
158
+ if (!this.RespondsToGestures)
159
+ return this.BlockedGestureResult(args); // a tap does not select it, nor reach controls under it
148
160
  if (args.Type === "Tapped") {
149
- if (!this.IsToggled && this.RespondsToGestures) {
161
+ if (!this.IsToggled) {
150
162
  this.IsToggled = true;
151
163
  return this;
152
164
  }
@@ -72,6 +72,6 @@ export declare class SkiaRichLabel extends SkiaLabel {
72
72
  private RenderDocument;
73
73
  /** Blocks are separated by one line break once something was emitted (C# hadParagraph). */
74
74
  private BeginBlock;
75
- /** Inline markdown: `code`, **bold**, __bold__, *italic*, _italic_, ~~strike~~, [text](url), backslash escapes. */
75
+ /** Inline markdown: `code`, ***bold italic***, ___bold italic___, **bold**, __bold__, *italic*, _italic_, ~~strike~~, [text](url), backslash escapes. */
76
76
  private RenderInlines;
77
77
  }
@@ -206,7 +206,7 @@ export class SkiaRichLabel extends SkiaLabel {
206
206
  this.LineBreak();
207
207
  this.hadParagraph = true;
208
208
  }
209
- /** Inline markdown: `code`, **bold**, __bold__, *italic*, _italic_, ~~strike~~, [text](url), backslash escapes. */
209
+ /** Inline markdown: `code`, ***bold italic***, ___bold italic___, **bold**, __bold__, *italic*, _italic_, ~~strike~~, [text](url), backslash escapes. */
210
210
  RenderInlines(text, state) {
211
211
  let literal = "";
212
212
  const flush = () => { if (literal) {
@@ -246,6 +246,16 @@ export class SkiaRichLabel extends SkiaLabel {
246
246
  continue;
247
247
  }
248
248
  }
249
+ const three = text.slice(i, i + 3);
250
+ if (three === "***" || three === "___") {
251
+ const end = closes(three, i + 3);
252
+ if (end > i + 3) {
253
+ flush();
254
+ this.RenderInlines(text.slice(i + 3, end), { ...state, bold: true, italic: true });
255
+ i = end + 3;
256
+ continue;
257
+ }
258
+ }
249
259
  const two = text.slice(i, i + 2);
250
260
  if (two === "**" || two === "__" || two === "~~") {
251
261
  const end = closes(two, i + 2);
@@ -12,10 +12,15 @@ export interface ScaledPoint {
12
12
  * Mirrors DrawnUi SkiaScroll (plain content, no header/footer/refresh/virtualization yet).
13
13
  * Offsets are in POINTS and <= 0 while inside bounds (content moves up/left as you scroll).
14
14
  * Physics ported 1:1: deceleration fling (rate = 1 - FrictionScrolled/100) cut at the content edge,
15
- * rubber-band overscroll while dragging, spring bounce back on release, wheel = WheelLineSize per notch.
15
+ * rubber-band overscroll while dragging, spring bounce back on release, wheel = WheelLineSize per notch (an event moves by its share of a notch).
16
16
  */
17
17
  export declare class SkiaScroll extends SkiaControl {
18
18
  static WheelLineSize: number;
19
+ /**
20
+ * Wheel events closer than this (ms) are one wheel gesture: they keep the scroll they started on, as browsers latch a
21
+ * scroller (C# SkiaScroll.WheelGestureGapMs, drawnui-cross 6bo).
22
+ */
23
+ static WheelGestureGapMs: number;
19
24
  static ThesholdSwipeOnUp: number;
20
25
  static ScrollVelocityThreshold: number;
21
26
  Orientation: ScrollOrientation;
@@ -31,7 +36,11 @@ export declare class SkiaScroll extends SkiaControl {
31
36
  AutoScrollingSpeedMs: number;
32
37
  ScrollingSpeedMs: number;
33
38
  IgnoreWrongDirection: boolean;
34
- RespondsToGestures: boolean;
39
+ private respondsToGestures;
40
+ /** False: neither a drag, the wheel nor the keyboard scrolls it (code still can), and it is reported disabled; its content keeps its own taps (drawnui-cross 6w). */
41
+ get RespondsToGestures(): boolean;
42
+ set RespondsToGestures(v: boolean);
43
+ protected AcceptsInput(): boolean;
35
44
  private header?;
36
45
  private footer?;
37
46
  /** A view before the content along the scroll axis; `Tag="Header"` on a JSX child sets it. */
@@ -156,6 +165,10 @@ export declare class SkiaScroll extends SkiaControl {
156
165
  set ViewportOffsetX(value: number);
157
166
  get ViewportOffsetY(): number;
158
167
  set ViewportOffsetY(value: number);
168
+ /** An offset set without a glide or a pan (a jump, a touchpad step): the controls under a still mouse changed. */
169
+ private OffsetJumped;
170
+ /** Hover waits while the content glides, flings, bounces or follows a pan (C# IsScrolling). */
171
+ MovesContent(): boolean;
159
172
  private readonly animatorFlingX;
160
173
  private readonly animatorFlingY;
161
174
  private readonly bounceX;
@@ -184,6 +197,35 @@ export declare class SkiaScroll extends SkiaControl {
184
197
  /** Content gets an infinite constraint along the scroll axis; the scroll itself takes the box it is given. */
185
198
  protected MeasureAbsolute(widthConstraint: number, heightConstraint: number, scale: number): ScaledSize;
186
199
  protected OnLayoutChanged(): void;
200
+ /**
201
+ * When true, the canvas keeps the focused text field of this scroll above the on-screen keyboard by itself (it sets
202
+ * AdaptToKeyboardFor and AdaptToKeyboardSize), and while the keyboard is up the part of the viewport it covers is room at
203
+ * the content end, so the last fields rise above it too. Off by default: an app that wires those two itself keeps doing so.
204
+ */
205
+ AdaptToKeyboardAuto: boolean;
206
+ /** Points kept between the bottom of AdaptToKeyboardFor and the keyboard's top (8 by default). */
207
+ AdaptToKeyboardGap: number;
208
+ private adaptFor?;
209
+ private adaptSize;
210
+ private keyboardInset;
211
+ private adaptPending;
212
+ /** The field to keep above the keyboard (set by the app, or by the canvas with AdaptToKeyboardAuto). */
213
+ get AdaptToKeyboardFor(): SkiaControl | undefined;
214
+ set AdaptToKeyboardFor(v: SkiaControl | undefined);
215
+ /** Points of the canvas, from its bottom, the keyboard covers (0 = no keyboard). */
216
+ get AdaptToKeyboardSize(): number;
217
+ set AdaptToKeyboardSize(v: number);
218
+ /**
219
+ * After the keyboard or the focused field changed: scrolls so the field shows above the keyboard. A field already
220
+ * visible, or the keyboard closing, leaves the page where it is (the keyboard closing settles a page scrolled into the
221
+ * keyboard's room at the content end). One adaptation for the field and the size set together.
222
+ */
223
+ AdaptToKeyboard(): void;
224
+ /** The keyboard's top in canvas points, from AdaptToKeyboardSize; NaN without one. */
225
+ private KeyboardTopPts;
226
+ private UpdateKeyboardInset;
227
+ /** Where the scroll must go so the field's bottom sits AdaptToKeyboardGap above the keyboard; NaN = nothing to move. */
228
+ CalculateNeededScrollForKeyboard(): number;
187
229
  /** Places Content at the current offset; called on layout and every frame while the offset moves. */
188
230
  private ArrangeContent;
189
231
  /** Header: sticky = pinned at the viewport start, else scrolled at HeaderParallaxRatio of the offset; footer after the content. */
@@ -198,9 +240,10 @@ export declare class SkiaScroll extends SkiaControl {
198
240
  /** Scroll to an offset in points; maxSpeedSecs > 0 animates along the deceleration curve. */
199
241
  /**
200
242
  * Scrolls every SkiaScroll ancestor of `control` so its DrawingRect lies inside the viewport (React extension,
201
- * used by the accessibility overlay when keyboard focus lands on an off-screen node). Offsets are points.
243
+ * used by the accessibility overlay when keyboard focus lands on an off-screen node). Offsets are points. Returns the
244
+ * scrolls that move.
202
245
  */
203
- static EnsureVisible(control: SkiaControl, maxTimeSecs?: number, paddingPts?: number): void;
246
+ static EnsureVisible(control: SkiaControl, maxTimeSecs?: number, paddingPts?: number): SkiaScroll[];
204
247
  /** Destination of the running ScrollTo per axis: the deceleration curve stops within its threshold, the exact value is applied when it finishes. */
205
248
  private scrollToTargetX;
206
249
  private scrollToTargetY;
@@ -214,18 +257,54 @@ export declare class SkiaScroll extends SkiaControl {
214
257
  * templated layout (the recycled list is the scroll's only child; a header goes above the scroll or in Header).
215
258
  */
216
259
  ScrollToIndex(index: number, animate: boolean, option?: RelativePositionType): void;
260
+ /**
261
+ * An open ScrollToIndex (C# OrderedScrollToIndex, DrawnUi.Rust scroll_to_index): a row not measured yet is gone to by
262
+ * the sizes as they are estimated, and the order is aimed again every frame until the row has its real place and the
263
+ * viewport stands on it; an animated move goes on to a moved target in the time it has left, later corrections jump.
264
+ * A press, the wheel or another scroll drops it; while it is open LoadMore waits.
265
+ */
266
+ private indexOrder?;
267
+ private pursuing;
268
+ /** One step of the open order (C# ExecuteScrollToIndexOrder, Rust `pursue`), at the start of every paint. */
269
+ private PursueIndexOrder;
270
+ /** The offset (points) that puts item `index` where `option` says, by the sizes the list knows now; Exact = its place is measured. */
271
+ private AimIndex;
217
272
  private StopAnimators;
218
273
  /** DrawnUi DecelerationRatio: FrictionScrolled / 100, floored at 0.1 friction. */
219
274
  private get DecelerationRatio();
220
275
  private ResetPan;
276
+ private draggedScrollBar?;
277
+ private scrollBarOwnsGesture;
278
+ /** The gesture going on started on a draggable scroll bar: it is the bar's (a page text selection does not start there). */
279
+ get ScrollBarOwnsGesture(): boolean;
280
+ /**
281
+ * Thumb drag and track press on a ScrollBar / ScrollBarHorizontal with IsDraggable set (C# ProcessScrollBarGestures).
282
+ * A gesture that starts on the bar belongs to it until the next down: the content neither pans nor gets the tap.
283
+ * True when the gesture was handled here.
284
+ */
285
+ protected ProcessScrollBarGestures(args: SkiaGesturesParameters, apply: GestureEventProcessingInfo): boolean;
286
+ private ApplyScrollBarDrag;
221
287
  ProcessGestures(args: SkiaGesturesParameters, apply: GestureEventProcessingInfo): SkiaControl | null;
222
288
  private Bounce;
223
289
  /** DrawnUi StartToFlingFrom + PrepareToFlingAfterInitialized: cut the curve so it stops exactly at the edge. */
224
290
  private StartToFlingFrom;
225
291
  /**
226
- * One wheel notch = WheelLineSize points, hard-clamped, animated over AutoScrollingSpeedMs.
227
- * Notches arriving while the previous one is still animating add onto its target, so a fast wheel
228
- * spin travels N steps instead of restarting from the barely-moved current offset.
292
+ * One wheel notch = WheelLineSize points, hard-clamped, animated over AutoScrollingSpeedMs. An event moves by its share
293
+ * of a notch (Canvas.WheelDeltaPerNotch), so a touchpad's many small events scroll as far as the fingers moved (C#
294
+ * aaa871c3); an event under half a notch moves the content at once (no glide). Events arriving while the previous one is still animating add onto its target, so a fast wheel spin
295
+ * travels N steps instead of restarting from the barely-moved current offset.
296
+ */
297
+ /**
298
+ * drawnui-cross 6bo (DrawnUi.Rust leaves_drag_to_outer), asked once, when this scroll would take a drag: already at its
299
+ * end in the drag's direction (at its start dragged back, at its end dragged on) with a scroll around it moving on the
300
+ * same axis, the outer scroll takes the whole drag. Never toward the start with pull to refresh on; a scroll with nothing
301
+ * around it keeps its edge bounce. Otherwise this scroll keeps the drag to its end.
229
302
  */
303
+ private LeavesDragToOuter;
304
+ private static Contains;
305
+ /** The scroll the current wheel gesture belongs to, and its last event time. */
306
+ private static wheelLatch?;
307
+ /** It scrolls with the wheel on this axis (a vertical scroll leaves the sideways part of a diagonal swipe to what is around it). */
308
+ private WheelUsable;
230
309
  private ApplyWheelScroll;
231
310
  }