aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-08 13:36:06 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-08 13:36:06 +0200
commita92ad512bbcfc367f17739886cdeada13c20e66a (patch)
tree8fd238ebca4b124916eb31a6760bb227b7bb57ba /view/theme/redbasic/js
parentfd6ec17d4b603763a6d51af662644315ba93cb80 (diff)
parente39b29cc4b9599918fc87dfc0de753d9db7f1980 (diff)
downloadvolse-hubzilla-a92ad512bbcfc367f17739886cdeada13c20e66a.tar.gz
volse-hubzilla-a92ad512bbcfc367f17739886cdeada13c20e66a.tar.bz2
volse-hubzilla-a92ad512bbcfc367f17739886cdeada13c20e66a.zip
Merge branch 'dev' into 6.0RC
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r--view/theme/redbasic/js/redbasic.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index a354682d7..9312d8390 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -71,7 +71,7 @@ $(document).ready(function() {
setInterval(function () {checkNotify();}, 10 * 1000);
var touch_start = null;
- var touch_max = 70;
+ var touch_max = window.innerWidth / 10;
window.addEventListener('touchstart', function(e) {
if (e.touches.length === 1){
@@ -90,7 +90,7 @@ $(document).ready(function() {
window.addEventListener('touchend', function(e) {
$('html, body').css('overflow-y', '');
- let touch_offset = 30; //at least 100px are a swipe
+ let touch_offset = 30; //at least 30px are a swipe
if (touch_start) {
//the only finger that hit the screen left it
let touch_end = e.changedTouches.item(0).clientX;