Skip to content

Commit 1909586

Browse files
author
Hongxu Liu
committed
Fixed closing article bug
1 parent 7990d0d commit 1909586

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

build/famous.lib.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/img/profile-pics/corban.jpg

-7.88 KB
Binary file not shown.

build/img/profile-pics/jane.jpg

56.9 KB
Loading

build/img/profile-pics/sarah.jpg

-35.6 KB
Binary file not shown.

build/img/profile-pics/zita.jpg

18.2 KB
Loading

build/img/scuba/photos/1.jpg

159 KB
Loading

img/profile-pics/jane.jpg

61.8 KB
Loading

js/app/StoryViews/ArticleStoryView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ define(function(require, exports, module) {
4545
}.bind(this), {direction: Utility.Direction.Y});
4646

4747
this.sync.on('update', function(data) {
48+
this.closed = false;
4849
if(this.progress !== 1) return;
4950

5051
if(this.open && this.article.atTop && data.v > 0) {

js/app/StoryViews/StoriesView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ define(function(require, exports, module) {
3535
StoriesView.prototype.constructor = StoriesView;
3636

3737
StoriesView.DEFAULT_OPTIONS = {
38-
velThreshold: 1,
38+
velThreshold: 0.7,
3939
spring: {
4040
method: 'spring',
4141
period: 200,

0 commit comments

Comments
 (0)