Open ericcroskeyartefact opened 12 years ago
In this scenario at the end you can see "this.updater.end".
It would be convenient if filters, anchor, updater and any other main object properties were exposed to the instance so that elsewhere in the code I could go " _i.dragAni.updater.end() "
_i.dragAni = Awe.enableDrag( _i.container, { filters: new Awe.DragFilterMomentum(), anchor: new Awe.DragAnchorTopLeft(), updater: { start : function() { _i.container.fractionY = 0; }, move : function(el,evt) { _i.containerDeltaY( evt.delta.y ); }, end : function() { if ( _i.justifyTargetY()!=null ) { _i.justify() } } }, onDragEnd : function() { if ( _i.justifyTargetY()!=null ) { this.updater.end(); } } });
Now that I have more experience using this stuff, this feature request does not seem needed and would just add more code.
In this scenario at the end you can see "this.updater.end".
It would be convenient if filters, anchor, updater and any other main object properties were exposed to the instance so that elsewhere in the code I could go " _i.dragAni.updater.end() "
_i.dragAni = Awe.enableDrag( _i.container, { filters: new Awe.DragFilterMomentum(), anchor: new Awe.DragAnchorTopLeft(), updater: { start : function() { _i.container.fractionY = 0; }, move : function(el,evt) { _i.containerDeltaY( evt.delta.y ); }, end : function() { if ( _i.justifyTargetY()!=null ) { _i.justify() } } }, onDragEnd : function() { if ( _i.justifyTargetY()!=null ) { this.updater.end(); } } });