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
- **CRITICAL** — Scroll presets (`*Scroll`) used with `viewProgress` MUST include `range` in options: `'in'` (ends at idle state), `'out'` (starts from idle state), or `'continuous'` (passes through idle). Prefer `'continuous'`.
509
509
- Mouse presets are preferred over `keyframeEffect` for `pointerMove` 2D effects.
510
-
- The mouse category also exports `CustomMouse`, which is a factory taking a `customEffect` callback rather than aready-made preset. It cannot be used as a `namedEffect` (a `namedEffect` and a `customEffect` are mutually exclusive payloads) — reach for `customEffect` directly instead.
511
-
- `@wix/motion-presets` additionally exports experimental `Bg*` background-scroll presets marked NOT PRODUCTION READY in source. `import * as presets` pulls them in; do not use them in generated configs.
Copy file name to clipboardExpand all lines: packages/interact/rules/pointermove.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,6 @@ type PointerMoveParams = {
39
39
-`hitArea` — determines where mouse movement is tracked. **Omitting it behaves as `'root'`**: only an explicit `'self'` scopes tracking to the source element.
40
40
-`'self'` — tracks pointer within the source element's bounds only. Use for local pointer-tracking effects on a specific element.
41
41
-`'root'` (default) — tracks pointer anywhere in the viewport. Use for global cursor followers, ambient effects.
42
-
- Note: `@wix/interact-validate` still treats an **omitted**`hitArea` as at risk of hit-area shift and will raise `HIT_AREA_SHIFT` for a geometry-changing effect on the source. Set `hitArea: 'root'` explicitly to silence it, which also states the intent.
43
42
-`axis` — restricts pointer tracking to a single axis. Used with `keyframeEffect` to map one axis to 0–1 progress; ignored by `namedEffect` and `customEffect` which receive the full 2D progress:
44
43
-`'x'` — maps horizontal pointer position to 0–1 progress for keyframe interpolation.
45
44
-`'y'` — maps vertical pointer position to 0–1 progress for keyframe interpolation. **Default** when `keyframeEffect` is used.
0 commit comments