Tempiraru fix for pull to refresh being over-agressive
This commit is contained in:
parent
99032361b0
commit
5b88462a0e
|
@ -187,3 +187,18 @@ emoji-link
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#before-main
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
height: 2em;
|
||||||
|
background-color: #888;
|
||||||
|
color: #444;
|
||||||
|
margin-top: 12px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#before-main span
|
||||||
|
{
|
||||||
|
margin-left: 50%;
|
||||||
|
}
|
||||||
|
|
|
@ -158,3 +158,18 @@ emoji-link
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#before-main
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
height: 2em;
|
||||||
|
background-color: #DEDEDE;
|
||||||
|
color: white;
|
||||||
|
margin-top: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#before-main span
|
||||||
|
{
|
||||||
|
margin-left: 50%;
|
||||||
|
}
|
||||||
|
|
|
@ -171,6 +171,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
<div id="before-main" class="is-hidden-desktop">
|
||||||
|
<span class="fa fa-bars"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section id="main" class="section" ic-history-elt="true">
|
<section id="main" class="section" ic-history-elt="true">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -213,11 +218,11 @@
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
menuPrepare();
|
menuPrepare();
|
||||||
$("#main-nav-bar").pullToRefresh({
|
$("#before-main").pullToRefresh({
|
||||||
refresh: 200,
|
refresh: 200,
|
||||||
simulateTouch: false,
|
simulateTouch: false,
|
||||||
threshold: 100,
|
threshold: 100,
|
||||||
scroll: "main-nav-bar",
|
scroll: "before-main",
|
||||||
});
|
});
|
||||||
$(document).on("refresh.pulltorefresh", function ($element, y){
|
$(document).on("refresh.pulltorefresh", function ($element, y){
|
||||||
$("page-load-indicator").show();
|
$("page-load-indicator").show();
|
||||||
|
|
Loading…
Reference in New Issue