mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Replace another jquery-ui swipe with tapAndSwipe
This commit is contained in:
parent
fd66a9b24d
commit
22f41e7cb4
@ -22,6 +22,7 @@ import '../../api/js/framework/fw_ui.js';
|
||||
import '../../api/js/framework/fw_classes.js';
|
||||
import '../../api/js/jsapi/egw_inheritance.js';
|
||||
import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
||||
import {tapAndSwipe} from "../../api/js/tapandswipe";
|
||||
/**
|
||||
*
|
||||
* @param {DOMWindow} window
|
||||
@ -69,10 +70,9 @@ import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
||||
{
|
||||
this._super.apply(this,arguments);
|
||||
var $baseDiv = jQuery(this.baseDiv);
|
||||
/*$baseDiv.swipe({
|
||||
swipe: function (e, direction,distance)
|
||||
let swipe = new tapAndSwipe(this.baseDiv, {
|
||||
swipe: function(e, direction, distance)
|
||||
{
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case "up":
|
||||
@ -91,17 +91,8 @@ import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
||||
framework.toggleMenu();
|
||||
}
|
||||
},
|
||||
swipeStatus:function(event, phase, direction, distance, duration, fingers)
|
||||
{
|
||||
switch (phase)
|
||||
{
|
||||
case "move":
|
||||
//TODO: implement smooth swip
|
||||
|
||||
}
|
||||
},
|
||||
allowPageScroll: "vertical"
|
||||
});*/
|
||||
allScrolling: 'vertical'
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Adds an entry to the sidemenu.
|
||||
|
Loading…
Reference in New Issue
Block a user