Skip to content

Commit

Permalink
work around android 3 scrollTop looping
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Deforche committed Mar 16, 2012
1 parent b7a1102 commit e83cffb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/js/WTableView.js
Expand Up @@ -33,6 +33,9 @@ WT_DECLARE_WT_MEMBER
scrollTop = headerColumnsContainer.scrollTop
= contentsContainer.scrollTop;

if (contentsContainer.scrollTop == 0 && WT.isAndroid)
return;

if (contentsContainer.clientWidth && contentsContainer.clientHeight
&& (contentsContainer.scrollTop < scrollY1
|| contentsContainer.scrollTop > scrollY2
Expand Down
14 changes: 7 additions & 7 deletions src/js/WTableView.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 src/web/WebSession.C
Expand Up @@ -793,7 +793,7 @@ bool WebSession::attachThreadToLockedHandler()

return false;
#else
attachThreadToHandler(new Handler(this, false));
Handler::attachThreadToHandler(new Handler(this, false));
return true;
#endif
}
Expand Down

0 comments on commit e83cffb

Please sign in to comment.