bugfix: webkit scroll #826

This commit is contained in:
2020-07-29 16:44:50 +02:00
parent 196c02d0fc
commit 68064c916a
6 changed files with 47 additions and 29 deletions
+10 -2
View File
@@ -7,8 +7,16 @@
<slot name="header" />
</header>
<section ref="scrollablecenter" class="med-col-6 large-col-6" @scroll.passive="onScrollCenter">
<slot />
<section
class="med-col-6 large-col-6"
@scroll.passive="onScrollCenter"
>
<div
class="wrapper"
ref="scrollablecenter"
>
<slot />
</div>
</section>
<nav class="med-col-3 large-col-3" :class="{ opened: navopened }">
+1 -1
View File
@@ -2,7 +2,7 @@
<nav id="header-menu">
<!-- <span v-if="!corpusLoaded" class="loading">Loading ...</span> -->
<ul>
<li >
<li>
<span v-if="!corpusLoaded" class="loading">Loading ...</span>
<router-link v-else to="/corpus">Corpus</router-link>
</li>
+6 -2
View File
@@ -34,8 +34,12 @@ Vue.use(VueScrollTo)
Vue.component('v-select', VueSelect)
Vue.use(Vue2TouchEvents)
window.apipath = process.env === 'prod' ? `http://${window.location.hostname}/api` : 'http://localhost:8984'
// https://apple.stackexchange.com/questions/17077/add-a-hosts-file-entry-without-jailbreaking
window.apipath = process.env === 'prod' || window.location.hostname === 'dev.gdp.fr' ? `http://${window.location.hostname}/api` : 'http://localhost:8984'
// if (window.location.hostname === 'dev.gdp.fr') {
// window.apipath = `http://${window.location.hostname}/api`
// }
// window.apipath = `http://${window.location.hostname}:8984`
// sync(store, router) // done. Returns an unsync callback fn
new Vue({