Skip to content

Commit

Permalink
#33 - Added Opera Mini browser detection to disable page load scroll …
Browse files Browse the repository at this point in the history
…to active verse.
  • Loading branch information
pstephens committed Jul 15, 2016
1 parent c2cfbc9 commit ceb90bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/biblecli/commands/staticpages.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ a:hover, a:active {
document.kj = document.kj || {};
var isOperaMini = Object.prototype.toString.call(window.operamini) === \"[object OperaMini]\"
var activeId = '_main';
function FindElem(id)
Expand Down Expand Up @@ -270,7 +271,7 @@ function SetActive()
function ScrollToY(y)
{
if(window.scrollY !== y) {
if(!isOperaMini && window.scrollY !== y) {
window.scrollTo(window.scrollX, y);
}
}
Expand Down

0 comments on commit ceb90bf

Please sign in to comment.