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
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@
62
62
- pat inject: Rebase URLs in pattern configuration attributes. This avoids URLs in pattern configuration to point to unreachable paths in the context where the result is injected into.
63
63
- pat forward: Add `delay` option for delaying the click action forwarding for a given number of milliseconds.
64
64
- pat forward: Add `self` as possible value for the `selector` option to trigger the event on itself.
65
+
- pat-scroll: Implement `selector:bottom` attribute value to scroll to the bottom of the scroll container.
|`trigger`|`click`|`click`, `auto`|`auto` means that the scrolling will happen as soon as the page loads. `click` means that the configured element needs to be clicked first. |
53
-
|`direction`|`top`|`top`, `left`| The direction in which the scrolling happens. |
54
-
|`selector`|`top`, CSS selector | A CSS or jQuery selector string or 'top'. | A selector for the element which will be scrolled by a number of pixels equal to `offset`. By default it will be the element on which the pattern is declared. Ignored unless `offset` is specified. |
55
-
|`offset`|| A number |`offset` can only be used with scrollable elements. (An element is "scrollable" if it has scrollbars, i.e. when the CSS property `overflow` is either `auto` or `scroll`.) The element scrolled by `offset` can be specified with the `selector` option. If `selector` is not present, the element on which `pat-scroll` is declared will be scrolled. |
|`trigger`|`click`|`click`, `auto`|`auto` means that the scrolling will happen as soon as the page loads. `click` means that the configured element needs to be clicked first. |
53
+
|`direction`|`top`|`top`, `left`| The direction in which the scrolling happens. |
54
+
|`selector`|`top`, `bottom`, CSS selector | A CSS or jQuery selector string or 'top'. | A selector for the element which will be scrolled by a number of pixels equal to `offset`. By default it will be the element on which the pattern is declared. Ignored unless `offset` is specified. |
55
+
|`offset`|| A number |`offset` can only be used with scrollable elements. (An element is "scrollable" if it has scrollbars, i.e. when the CSS property `overflow` is either `auto` or `scroll`.) The element scrolled by `offset` can be specified with the `selector` option. If `selector` is not present, the element on which `pat-scroll` is declared will be scrolled. |
56
+
57
+
58
+
Note: Selector `top` will scroll the scroll container to the top, `bottom` to the bottom.
0 commit comments