Commit cc2820e0 authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

fixed bug with orientation sliders creation

parent fd274061
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.13",
version: "0.0.14",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -33,7 +33,7 @@ let OrientationPanel = {
let a = new Interface.Panel({
container:document.getElementById(domId)
});
console.log("adding orientation");
this.orientation = new Interface.Orientation({
onvaluechange: function(pitch, roll, yaw, heading) {
console.log(pitch, roll, yaw, heading);
......@@ -41,9 +41,10 @@ let OrientationPanel = {
});
let nrSliders = this.sliders_titles.length;
let nrSliders = this.slider_titles.length;
this.slider_titles.forEach( (s, idx) => {
console.log("adding " + s);
this.sliders[s] = new Interface.Slider({
bounds: [(1/nrSliders) * idx, .1, 1 / nrSliders, .5],
label: s
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment