Skip to content

Commit

Permalink
Fixed scroll jumpiness
Browse files Browse the repository at this point in the history
* Also click mocking (the Android 4.4+ compatibility hack) should work
better now
  • Loading branch information
jahu00 committed Mar 12, 2016
1 parent 352e6ed commit c7fcfdf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
9 changes: 5 additions & 4 deletions www/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -631,14 +631,15 @@ body
background-image: url("back.png");
}*/

.container.brHack > br, .container.brHack > div
.container.brHack > *
{
display:block;
line-height: 1;
min-height:1em;
min-height: 1px;
}

.container.brHack > br
{
content: " ";
display:block;
line-height: 1;
min-height:1em;
}
6 changes: 3 additions & 3 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="screen reader">
<div class="scroller">
<div class="wrapper">
<div class="container">
<div class="container brHack">
</div>
</div>
</div>
Expand Down Expand Up @@ -241,10 +241,10 @@
</div>
</div>
<div class="header">Hacks</div>
<div class="item checkbox useDroid4Hacks" data-system-name="useDroid4Hacks">
<!--<div class="item checkbox useDroid4Hacks" data-system-name="useDroid4Hacks">
Use Android 4-4.3 hacks <i></i>
<div class="description">Improves compatibility with older androids, but might cause minor formatting issues.</div>
</div>
</div>-->
<div class="item checkbox useDroid5Hacks" data-system-name="useDroid5Hacks">
Use Android 4.4+ hacks <i></i>
<div class="description">Improves compatibility with newer androids (and OSs running Chrome browser), but will cause gliches on older systems.</div>
Expand Down
5 changes: 3 additions & 2 deletions www/js/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ Reader.prototype = {
suicide();
e.preventDefault();
e.stopPropagation();
if (trigger && distance < 10)
//console.log(trigger, distance)
if (trigger && distance < 20)
{
self.containerClick(event);
}
Expand All @@ -84,7 +85,7 @@ Reader.prototype = {
var clearClick = setTimeout(function()
{
trigger = false;
}, 300);
}, 500);

elem.on('touchend', end);
elem.on('touchmove', move);
Expand Down
4 changes: 2 additions & 2 deletions www/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Settings.prototype = {
},
"false");

var droid4HacksControl = new CheckboxControl(self.screen.find('.useDroid4Hacks'), function(value)
/*var droid4HacksControl = new CheckboxControl(self.screen.find('.useDroid4Hacks'), function(value)
{
var container = $('.container');
if (value)
Expand All @@ -350,7 +350,7 @@ Settings.prototype = {
container.removeClass('brHack');
}
},
"false");
"true");*/

var droid5HacksStartValue = null;
var droid5HacksControl = new CheckboxControl(self.screen.find('.useDroid5Hacks'), function(value)
Expand Down

0 comments on commit c7fcfdf

Please sign in to comment.