components: [
{kind: "ApplicationEvents", onWindowActivated: "windowActivated", onWindowDeactivated: "windowDeactivated"},
{name: "hacksCarousel", kind: "Carousel", flex: 1, onGetLeft: "getLeft", onGetRight: "getRight", onScroll: "scrolling", onScrollStart: "startScroll", onScrollStop: "stopScroll"},
- //{name: "hacksSelector", kind: "HacksSelector"}
{name: "info", kind: "HFlexBox", className: "info", style: "opacity: 0", showing: false, components: [
{name: "title"},
{kind: "Spacer"},
this.index = 0;
this.lastScrollPos = 0;
this.$.hacksCarousel.setCenterView(this.getHack(this.index));
- //this.$.hacksSelector.setHacksList(this.hacksList);
},
ready: function() {
this.startHack();
scrolling: function(inSender) {
if (inSender.scrollLeft == 0 || inSender.scrollLeft == inSender.getBoundaries().right)
this.startHack();
- //this.$.hacksSelector.index = this.index + ((inSender.scrollLeft - this.lastScrollPos) / window.innerWidth);
- //this.$.hacksSelector.draw();
},
startScroll: function(inSender) {
this.stopHack();