emberjs-addons / ember-touch

A lightweight library for building and using touch gestures with Ember Applications
MIT License
182 stars 28 forks source link

When appropriate, gestures should work with the mouse #3

Closed jtaby closed 12 years ago

jtaby commented 13 years ago

1-finger gestures that map to the mouse should work out-of-the-box.

ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});
ppcano commented 12 years ago

I am closing it, because I don't currently plan to implement this feature.

I have been doing some similar on tap/click behavior like the code shown below:


Yn.Btap = Ember.Mixin.create({
  canBoth: false,
  init: function() {

    this._super();
    var canBoth = 'ontouchstart' in window && 'onclick' in window;
    this.set('canBoth', canBoth);

  },
    bTap: function() {
  },
  tapEnd: function(recognizer) {
    this.bTap();
  },
  click: function(){
    if ( !this.get('canBoth') ) {
      // We are testing this feature, because where are handling touch
      // events based on ember-touch which includes a gestureDelegate
      // feature which controls event recognition
      var touchEvent;
      touchEvent = new jQuery.Event('touchstart');
      touchEvent['originalEvent'] = {
        targetTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);

      touchEvent = new jQuery.Event('touchend');
      touchEvent['originalEvent'] = {
        changedTouches: [{
          pageX: 0,
          pageY: 10
        }]
      };
      this.$().trigger(touchEvent);
      //this.bTap();

    }
    }
});