Skip to content

Commit 3ad966f

Browse files
committed
Release v0.0.2
1 parent 48ee23e commit 3ad966f

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interdimensional",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"homepage": "http://vodkabears.github.io/interdimensional/",
55
"authors": [
66
"Ilya Makarov <[email protected]>"

dist/interdimensional.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Interdimensional - v0.0.1
2+
* Interdimensional - v0.0.2
33
* Spatial scrolling for your web pages.
44
* http://vodkabears.github.io/interdimensional/
55
*

dist/interdimensional.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
2-
* Interdimensional - v0.0.1
2+
* Interdimensional - v0.0.2
33
* Spatial scrolling for your web pages.
44
* http://vodkabears.github.io/interdimensional/
55
*
66
* Made by Ilya Makarov <[email protected]>
77
* Under MIT License
88
*/
99

10-
(function(root, factory) {
10+
!(function(root, factory) {
1111
if (typeof define === 'function' && define.amd) {
1212
define(factory);
1313
} else if (typeof exports === 'object') {
@@ -16,6 +16,7 @@
1616
root.Interdimensional = factory();
1717
}
1818
})(this, function() {
19+
1920
'use strict';
2021

2122
/**
@@ -277,7 +278,7 @@
277278
* @param {Number} options.PPD Pixels per difference between tilts
278279
* @param {Number} options.insensitivity Minimum difference between tilts
279280
* @param {Boolean} options.useControl Use the control or not
280-
* @param {HTMLElement|null} Interdimensional control, if null - the default control will be used
281+
* @param {HTMLElement|null} options.control Interdimensional control, if null - the default control will be used
281282
*/
282283
charge: function(options) {
283284
if (!isCharged && !isCharging) {
@@ -306,15 +307,17 @@
306307
}
307308

308309
// Add the control
309-
settings.useControl && document.body.appendChild(control);
310+
!settings.control && settings.useControl && document.body.appendChild(control);
310311

311312
// Add event listeners
312313
control.addEventListener('touchstart', handleTouchStartEvent, false);
313314
window.addEventListener('deviceorientation', handleDeviceOrientationEvent, false);
314315
window.addEventListener('orientationchange', handleOrientationChangeEvent, false);
315316

316317
trigger('charge');
317-
}, function() {
318+
},
319+
320+
function() {
318321
isCharging = false;
319322
trigger('fail');
320323
});

dist/interdimensional.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interdimensional",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Spatial scrolling for your web pages.",
55
"keywords": [
66
"spatial",

0 commit comments

Comments
 (0)