@aintela/chat 0.2.51 → 0.2.52

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.
@@ -24,8 +24,16 @@ export interface TriggerDropdownProps {
24
24
  /**
25
25
  * The dropdown body.
26
26
  *
27
- * Rows select on POINTERDOWN, not click, and preventDefault: that is the one sequence that keeps the composer's
28
- * textarea focused through the pick on both input types. A plain click blurs it first — and on WebKit a real touch
29
- * is followed by a synthetic mousedown, so handling both fires twice.
27
+ * Selection is split by pointer type, because the two have opposite requirements.
28
+ *
29
+ * MOUSE selects on pointerdown with `preventDefault()` — the one sequence that keeps the composer's textarea
30
+ * focused through the pick. A plain click blurs it first, and handling mousedown+touchstart together fires twice
31
+ * on WebKit.
32
+ *
33
+ * TOUCH must not do either of those. Selecting on pointerdown makes every scroll pick whatever row the finger
34
+ * happened to land on, and `preventDefault()` there cancels the browser's own scrolling for that gesture — so the
35
+ * list could not be swiped at all. Touch therefore selects on pointerUP, and only when the gesture stayed put:
36
+ * the browser fires `pointercancel` the moment it claims the gesture for scrolling, which is the authoritative
37
+ * "this was a scroll, not a tap" signal. The slop check is a belt-and-braces for a shaky finger.
30
38
  */
31
39
  export declare function TriggerDropdown({ items, highlight, onHighlight, onSelect, loading, personLabel, locationLabel, touch, emptyLabel, sx, }: TriggerDropdownProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aintela/chat",
3
- "version": "0.2.51",
3
+ "version": "0.2.52",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"