Skip to content

Commit

Permalink
Release v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Apr 10, 2015
1 parent 48ee23e commit 3ad966f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interdimensional",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "http://vodkabears.github.io/interdimensional/",
"authors": [
"Ilya Makarov <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/interdimensional.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Interdimensional - v0.0.1
* Interdimensional - v0.0.2
* Spatial scrolling for your web pages.
* http://vodkabears.github.io/interdimensional/
*
Expand Down
13 changes: 8 additions & 5 deletions dist/interdimensional.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Interdimensional - v0.0.1
* Interdimensional - v0.0.2
* Spatial scrolling for your web pages.
* http://vodkabears.github.io/interdimensional/
*
* Made by Ilya Makarov <[email protected]>
* Under MIT License
*/

(function(root, factory) {
!(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof exports === 'object') {
Expand All @@ -16,6 +16,7 @@
root.Interdimensional = factory();
}
})(this, function() {

'use strict';

/**
Expand Down Expand Up @@ -277,7 +278,7 @@
* @param {Number} options.PPD Pixels per difference between tilts
* @param {Number} options.insensitivity Minimum difference between tilts
* @param {Boolean} options.useControl Use the control or not
* @param {HTMLElement|null} Interdimensional control, if null - the default control will be used
* @param {HTMLElement|null} options.control Interdimensional control, if null - the default control will be used
*/
charge: function(options) {
if (!isCharged && !isCharging) {
Expand Down Expand Up @@ -306,15 +307,17 @@
}

// Add the control
settings.useControl && document.body.appendChild(control);
!settings.control && settings.useControl && document.body.appendChild(control);

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

trigger('charge');
}, function() {
},

function() {
isCharging = false;
trigger('fail');
});
Expand Down
4 changes: 2 additions & 2 deletions dist/interdimensional.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interdimensional",
"version": "0.0.1",
"version": "0.0.2",
"description": "Spatial scrolling for your web pages.",
"keywords": [
"spatial",
Expand Down

0 comments on commit 3ad966f

Please sign in to comment.