Skip to content

Instantly share code, notes, and snippets.

var transformer = (function() {
var m00 = 1, m10 = 0, m20 = 0, m30 = 0,
m01 = 0, m11 = 1, m21 = 0, m31 = 0,
m02 = 0, m12 = 0, m22 = 1, m32 = 0,
m03 = 0, m13 = 0, m23 = 0, m33 = 1;
return {
scale: function(scale) {
m00 *= scale;
m11 *= scale;
var transformer = (function() {
var m00 = 1, m10 = 0, m20 = 0, m30 = 0,
m01 = 0, m11 = 1, m21 = 0, m31 = 0,
m02 = 0, m12 = 0, m22 = 1, m32 = 0,
m03 = 0, m13 = 0, m23 = 0, m33 = 1;
return {
scale: function(deg) {
m00 *= deg;
m11 *= deg;
touchEvent = jQuery.Event('touchend');
touchEvent['originalEvent'] = {
changedTouches: [
{
identifier: 0,
pageX: 0,
pageY: 10
},
{
identifier: 1,

Base class for all gesture recognizers. Handles low-level touch and state management, and provides some utility methods and some required methods all gesture recognizers are expected to implement.

Overview

Gestures coalesce multiple touch events to a single higher-level gesture event. For example, a tap gesture recognizer takes information about a touchstart event, a few touchmove events, and a touchend event and uses

# SproutCore Strobe License
snippet license
// ==========================================================================
// Project: SproutCore Runtime
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
# File template
snippet file
var receivedEvent=0;
view = SC.ContainerView.create({
elementId: 'containerView',
eventManager: SC.Object.create({
mouseDown: function(evt, view) {
// redispatch event when you get it
// the second parameter tells the dispatcher
// that this event has been handled. This
var numStart = 0;
var view = SC.View.create(SC.GestureSupport, {
elementId: 'gestureTest',
pinchStart: function(evt) {
},
touchStart: function(evt) {
console.log('touchStart');
var view = SC.View.create(SC.Gesturable, {
pinchStart: function(evt) {
},
pinchChange: function(evt) {
},
pinchEnd: function(evt) {
}
<script src="assets/bpm_packages.js" data-require="qunit/qunit-runner"></script>
/Users/majd/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bpm (>= 0) amongst [BlueCloth-1.0.1, Platform-0.4.0, RedCloth-4.2.7, RedCloth-4.2.3, RedCloth-4.1.9, abstract-1.0.0, actionmailer-3.0.8, actionmailer-3.0.7, actionmailer-3.0.1, actionmailer-2.3.4, actionpack-3.0.8, actionpack-3.0.7, actionpack-3.0.1, actionpack-2.3.4, activemodel-3.0.9, activemodel-3.0.8, activemodel-3.0.7, activemodel-3.0.1, activerecord-3.0.8, activerecord-3.0.7, activerecord-3.0.1, activerecord-2.3.4, activeresource-3.0.8, activeresource-3.0.7, activeresource-3.0.1, activeresource-2.3.4, activesupport-3.0.9, activesupport-3.0.8, activesupport-3.0.7, activesupport-3.0.1, activesupport-2.3.10, activesupport-2.3.4, addressable-2.2.6, arel-2.1.1, arel-2.0.10, arel-2.0.1, arel-1.0.1, asdf-0.5.0, awesome_print-0.4.0, awesome_print-0.2.1, builder-3.0.0, builder-2.1.2, bundler-1.0.15, bundler-1.0.13, bundler-1.0.3, bundler-1.0.0, bundler-1.0.0, childlabor-0.0.3, choctop-0.14.1, c