mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Scroll stuff
This commit is contained in:
@ -376,13 +376,6 @@
|
||||
// Start the drag states
|
||||
this._initDrag();
|
||||
|
||||
// Listen for drag and release events
|
||||
window.ionic.onGesture('drag', function(e) {
|
||||
_this._handleDrag(e);
|
||||
}, this.el);
|
||||
window.ionic.onGesture('release', function(e) {
|
||||
_this._handleEndDrag(e);
|
||||
}, this.el);
|
||||
};
|
||||
|
||||
ionic.views.List.prototype = {
|
||||
@ -417,6 +410,8 @@
|
||||
|
||||
this._isDragging = false;
|
||||
|
||||
return false;
|
||||
|
||||
// Check if this is a reorder drag
|
||||
if(ionic.DomUtil.getParentOrSelfWithClass(e.target, 'list-item-drag') && (e.gesture.direction == 'up' || e.gesture.direction == 'down')) {
|
||||
var item = this._getItem(e.target);
|
||||
@ -454,6 +449,7 @@
|
||||
|
||||
_handleEndDrag: function(e) {
|
||||
var _this = this;
|
||||
return false;
|
||||
|
||||
if(!this._dragOp) {
|
||||
this._initDrag();
|
||||
@ -470,6 +466,7 @@
|
||||
*/
|
||||
_handleDrag: function(e) {
|
||||
var _this = this, content, buttons;
|
||||
return false;
|
||||
|
||||
if(!this._dragOp) {
|
||||
this._startDrag(e);
|
||||
|
||||
Reference in New Issue
Block a user