Skip to content

Commit

Permalink
Rename dynamic_page to dynamicPage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisTM authored and yoannmoinet committed Sep 13, 2019
1 parent 4016682 commit 390c356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var options = {
lockY: Boolean, // only move on the Y axis
catchDistance: Number, // distance to recycle previous joystick in
// 'semi' mode
dynamic_page: Boolean, // Enable if the page has dynamically visible elements
dynamicPage: Boolean, // Enable if the page has dynamically visible elements
};
```

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

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

----
Expand Down
4 changes: 2 additions & 2 deletions src/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Collection (manager, options) {
restOpacity: 0.5,
lockX: false,
lockY: false,
dynamic_page: false
dynamicPage: false
};

self.config(options);
Expand Down Expand Up @@ -378,7 +378,7 @@ Collection.prototype.processOnMove = function (evt) {
return;
}

if (opts.dynamic_page) {
if (opts.dynamicPage) {
var scroll = u.getScroll();
pos = nipple.el.getBoundingClientRect();
nipple.position = {
Expand Down

0 comments on commit 390c356

Please sign in to comment.