Skip to content

Commit 390c356

Browse files
AlexisTMyoannmoinet
authored andcommitted
Rename dynamic_page to dynamicPage
1 parent 4016682 commit 390c356

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var options = {
141141
lockY: Boolean, // only move on the Y axis
142142
catchDistance: Number, // distance to recycle previous joystick in
143143
// 'semi' mode
144-
dynamic_page: Boolean, // Enable if the page has dynamically visible elements
144+
dynamicPage: Boolean, // Enable if the page has dynamically visible elements
145145
};
146146
```
147147

@@ -253,7 +253,7 @@ Locks joystick's movement to the x (horizontal) axis
253253
### `options.lockY` defaults to false
254254
Locks joystick's movement to the y (vertical) axis
255255

256-
### `options.dynamic_page` defaults to true
256+
### `options.dynamicPage` defaults to true
257257
Enable if the page has dynamically visible elements such as for Vue, React, Angular or simply some CSS hiding or showing some DOM.
258258

259259
----

src/collection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Collection (manager, options) {
3434
restOpacity: 0.5,
3535
lockX: false,
3636
lockY: false,
37-
dynamic_page: false
37+
dynamicPage: false
3838
};
3939

4040
self.config(options);
@@ -378,7 +378,7 @@ Collection.prototype.processOnMove = function (evt) {
378378
return;
379379
}
380380

381-
if (opts.dynamic_page) {
381+
if (opts.dynamicPage) {
382382
var scroll = u.getScroll();
383383
pos = nipple.el.getBoundingClientRect();
384384
nipple.position = {

0 commit comments

Comments
 (0)