Skip to content

Commit

Permalink
maybe the stimulus is eating events, it was removng touchend ProjetDe…
Browse files Browse the repository at this point in the history
  • Loading branch information
cesine committed Feb 10, 2014
1 parent e631cf7 commit 41dbe37
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions core/abstract-stimulus.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,25 +164,25 @@ exports.AbstractStimulus = Component.specialize( /** @lends Stimulus# */ {

prepareForActivationEvents: {
value: function() {
this._pressComposer.addEventListener("pressStart", this, false);
this._pressComposer.addEventListener("press", this, false);
this._pressComposer.addEventListener("pressCancel", this, false);
// this._pressComposer.addEventListener("pressStart", this, false);
// this._pressComposer.addEventListener("press", this, false);
// this._pressComposer.addEventListener("pressCancel", this, false);
}
},

setupFirstPlay: {
value: function() {
this.element.removeEventListener("touchstart", this, false);
this.element.removeEventListener("mousedown", this, false);
// this._firstPlay = true;
// this.videoController.stop();
// this.element.removeEventListener("touchstart", this, false);
// this.element.removeEventListener("mousedown", this, false);
// // this._firstPlay = true;
// // this.videoController.stop();

// this.classList.add("digit-Video--firstPlay");
// this.classList.remove("digit-Video--showControls");
// // this.classList.add("digit-Video--firstPlay");
// // this.classList.remove("digit-Video--showControls");

this._pressComposer = PressComposer.create();
this._pressComposer.identifier = "stimulus";
this.addComposerForElement(this._pressComposer, this.element);
// this._pressComposer = PressComposer.create();
// this._pressComposer.identifier = "stimulus";
// this.addComposerForElement(this._pressComposer, this.element);
// this.showPoster();


Expand Down

0 comments on commit 41dbe37

Please sign in to comment.