Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/scrolltop-fix' into 2.0.4-option…
Browse files Browse the repository at this point in the history
…al-refocus

Conflicts:
	dist/pinny.min.js
  • Loading branch information
Anton Bielousov committed Dec 23, 2015
2 parents aaec3f8 + f3ae6be commit 5f7123d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/effect/modal-center.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/effect/sheet-bottom.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/effect/sheet-left.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/effect/sheet-right.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/effect/sheet-top.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions dist/pinny.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
/* jshint ignore:end */

var $window = $(window);
var iOS8 = $.os.ios && $.os.major >= 8;
var needsSpacer = ($.os.ios && $.os.major <= 7) ||
($.os.android && $.os.major <= 4);

Expand Down Expand Up @@ -127,6 +128,13 @@

this._trigger('opened');

// Lockup scrolls the lockup container but the page will not be in the correct scroll position.
// We will set it to the top so the page would appear exactly where you left off.

if (iOS8) {
$(window).scrollTop(0);
}

}.bind(this), 0);
},
closeComplete: function() {
Expand Down Expand Up @@ -197,6 +205,12 @@
return;
}

// Force window repaint before Pinny opens so that it will
// render correctly and not double the viewport width.
if (iOS8) {
this._repaint();
}

this._trigger('open');

bouncefix.add(classes.SCROLLABLE);
Expand Down
2 changes: 1 addition & 1 deletion dist/pinny.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f7123d

Please sign in to comment.