mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Fixed #113 - scroll bouncing regardless of window size, fixes pull to refresh
This commit is contained in:
4
dist/js/ionic.js
vendored
4
dist/js/ionic.js
vendored
@ -2411,6 +2411,7 @@ window.ionic = {
|
||||
var parentWidth = this.el.parentNode.offsetWidth;
|
||||
var parentHeight = this.el.parentNode.offsetHeight;
|
||||
|
||||
/*
|
||||
var maxX = Math.min(0, (-totalWidth + parentWidth));
|
||||
var maxY = Math.min(0, (-totalHeight + parentHeight));
|
||||
|
||||
@ -2418,6 +2419,7 @@ window.ionic = {
|
||||
if((this.isHorizontalEnabled && maxX == 0) || (this.isVerticalEnabled && maxY == 0)) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
this.x = scrollLeft;
|
||||
this.y = scrollTop;
|
||||
@ -3176,8 +3178,6 @@ window.ionic = {
|
||||
|
||||
this._isDragging = false;
|
||||
|
||||
console.log(e.gesture.direction);
|
||||
|
||||
// Check if this is a reorder drag
|
||||
if(ionic.DomUtil.getParentOrSelfWithClass(e.target, ITEM_DRAG_CLASS) && (e.gesture.direction == 'up' || e.gesture.direction == 'down')) {
|
||||
var item = this._getItem(e.target);
|
||||
|
||||
Reference in New Issue
Block a user