Skip to content

Commit 60c7c26

Browse files
KenzoIkeizumekale-stew
authored andcommitted
Update deck.js (FormidableLabs#686)
1 parent 5c47a42 commit 60c7c26

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/deck.js

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default class Deck extends Component {
2929
autoplayOnStart: PropTypes.bool,
3030
children: PropTypes.node,
3131
controls: PropTypes.bool,
32+
disableKeyboardControls: PropTypes.bool,
3233
globalStyles: PropTypes.bool,
3334
history: PropTypes.object,
3435
onStateChange: PropTypes.func,

src/components/magic-wrapper.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default class MagicText extends Component {
145145
}
146146
if (this.diffs.updated) {
147147
Object.keys(this.diffs.updated).forEach(m => {
148-
const props = {
148+
const properties = {
149149
...(this.diffs.added[m] || {}),
150150
...(this.diffs.updated[m] || {})
151151
};
@@ -155,8 +155,8 @@ export default class MagicText extends Component {
155155
if (last) {
156156
const start = {};
157157
const end = {};
158-
const xdiff = props.x - last.x || 0;
159-
const ydiff = props.y - last.y || 0;
158+
const xdiff = properties.x - last.x || 0;
159+
const ydiff = properties.y - last.y || 0;
160160
start.transform = `translate(${xdiff * -1}px, ${ydiff * -1}px)`;
161161
end.transform = 'translate(0, 0)';
162162
const el = document.querySelector(`[data-key='${m}']`);

0 commit comments

Comments
 (0)