mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
Forgot __onShake method.
This commit is contained in:
parent
88aa0df407
commit
f083a3dabb
1 changed files with 10 additions and 0 deletions
|
|
@ -48,6 +48,16 @@
|
|||
this.fire('touch:orientation', {e: e, self: self});
|
||||
},
|
||||
|
||||
/**
|
||||
* Method that defines actions when an Event.js shake event is detected.
|
||||
*
|
||||
* @param e Event object by Event.js
|
||||
* @param self Event proxy object by Event.js
|
||||
*/
|
||||
__onShake: function(e, self) {
|
||||
this.fire('touch:shake', {e: e, self: self});
|
||||
},
|
||||
|
||||
/**
|
||||
* Scales an object by a factor
|
||||
* @param s {Number} The scale factor to apply to the current scale level
|
||||
|
|
|
|||
Loading…
Reference in a new issue