add swipe event catcher
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user