add swipe event catcher

This commit is contained in:
2019-06-01 14:08:20 +02:00
parent 09dfe7d24b
commit 97712b5122
2 changed files with 20 additions and 0 deletions

View File

@@ -103,6 +103,11 @@ function initPage(asHash) {
//Add "Loading" Post
getPost({type: 'loading', headerless: true, formatted_time: '', relative_time: ''}).appendTo($('#loading'));
//Mobile events
$("#feed").onSwipe(function(aiDelta){
if(aiDelta.x > self.tmp('feed_width')/3 && aiDelta.x > Math.abs(aiDelta.y)) toggleFeedPanel(false);
});
//project Bootstrap
initProject(asHash.items[0]);
}