glib-web 3.1.0 → 3.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1db2e4081d9ad6f54c2626b75123ac3f027749b7459b18db376c8d7dc9223c04
4
- data.tar.gz: 37a176aa91ed55346c5ec137cc6c80ade9c15c0d9a9b80f02b30749bd986626e
3
+ metadata.gz: 7582120728da9ff799f1e96c09441e9901c382dff1f6cc8f75915bcc4a001bc3
4
+ data.tar.gz: d3416f026945a4394b53c75fabac68bfe0221891ce799dcc8e69df17c6bfb103
5
5
  SHA512:
6
- metadata.gz: d131210d0e18d05ae520c13aa7eeea57383fefd27828fb82a8acc567d670b5fbf0e02351426d4cb1dcb19b3e7ba0c8fa51f2e28fcd3978af4221e8a44f9d8166
7
- data.tar.gz: a363d75ce45ed9f17e5bfd95f8bddc897064d032a03a0dfe973327411e513cf726088cd144308a70c7fcb3c3bd93c9a6f920131081534802b43c170ab035a96c
6
+ metadata.gz: 51b62f4e1432cb3282677e709f8e87f0d20f4fbb7b9e016b9ab704fed340664ee60fcf4c8ac34032bf74705da09cf5e576749c8944ff237f07b0110eab38ed8b
7
+ data.tar.gz: e62724ed3687f6f8905740c05655a1f797caafd5b4125b0d9bb770552a8c0b804b45a89134a57c5cd1f049f5125979b1ee5f8acccdbf0bf8cfa85f33efb0c064
@@ -10,8 +10,11 @@ class Glib::JsonUi::ActionBuilder
10
10
  string :viewId
11
11
  action :onScroll
12
12
  bool :animate
13
- string :placement
13
+ string :placement # `top` or `bottom`
14
14
  string :panelId
15
+
16
+ # Scroll even when the target component is already in view.
17
+ bool :force
15
18
  end
16
19
  end
17
20
  end
@@ -11,8 +11,13 @@ section.rows builder: ->(template) do
11
11
  end
12
12
 
13
13
  template.thumbnail title: 'panels/scrollTo', onClick: ->(action) do
14
- action.panels_scrollTo viewId: 'scroll_anchor', animate: true, onScroll: ->(subaction) do
15
- subaction.dialogs_alert message: 'Bottom reached'
16
- end
14
+ action.panels_scrollTo \
15
+ viewId: 'scroll_anchor',
16
+ force: true,
17
+ animate: true,
18
+ placement: 'top',
19
+ onScroll: ->(subaction) do
20
+ subaction.dialogs_alert message: 'Component becomes in view'
21
+ end
17
22
  end
18
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''