Gesture enable Exhibit

18 views
Skip to first unread message

Drew

unread,
May 25, 2012, 2:38:45 PM5/25/12
to simile-...@googlegroups.com
Two questions:
  • Does anyone know if the Timeline code found here (http://code.google.com/p/simile-widgets/issues/detail?id=278#c16) would work for Exhibit?
    • edit timeline-bundle.js with:
      SimileAjax.DOM.registerEventWithObject(this._div,"touchstart",this,"_onTouchStart");
      SimileAjax.DOM.registerEventWithObject(this._div,"touchmove",this,"_onTouchMove");
      Timeline._Band.prototype._onTouchStart=function(D,A,E)
      {
          if(A.touches.length == 1)
          {
      	var touch = A.changedTouches[0];
      	this._dragX=touch.clientX;
      	this._dragY=touch.clientY;
          }
      }
      Timeline._Band.prototype._onTouchMove=function(D,A,E)
      {
          if(A.touches.length == 1)
          {
      	A.preventDefault();
              var touch = A.changedTouches[0];
      	var C=touch.clientX-this._dragX;
              var B=touch.clientY-this._dragY;
              this._dragX=touch.clientX;
              this._dragY=touch.clientY;
              this._moveEther(this._timeline.isHorizontal()?C:B);
      	this._positionHighlight();
      	this._fireOnScroll();
      	this._setSyncWithBandDate();
          } 
      };
    • and comment out the following like
      //this._keyboardInput.focus();
  • If so, could it be implemented as an override in my local js file or would I need to host the entire timeline-bundle.js locally to make this work?

Or even better, could these changes be incorporated into trunk?

Thx


Reply all
Reply to author
Forward
0 new messages