mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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/framework/fw_classes.js';
|
||||||
import '../../api/js/jsapi/egw_inheritance.js';
|
import '../../api/js/jsapi/egw_inheritance.js';
|
||||||
import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
||||||
|
import {tapAndSwipe} from "../../api/js/tapandswipe";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {DOMWindow} window
|
* @param {DOMWindow} window
|
||||||
@ -69,10 +70,9 @@ import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
|||||||
{
|
{
|
||||||
this._super.apply(this,arguments);
|
this._super.apply(this,arguments);
|
||||||
var $baseDiv = jQuery(this.baseDiv);
|
var $baseDiv = jQuery(this.baseDiv);
|
||||||
/*$baseDiv.swipe({
|
let swipe = new tapAndSwipe(this.baseDiv, {
|
||||||
swipe: function(e, direction, distance)
|
swipe: function(e, direction, distance)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
case "up":
|
case "up":
|
||||||
@ -91,17 +91,8 @@ import '../../vendor/bower-asset/fastclick/lib/fastclick.js';
|
|||||||
framework.toggleMenu();
|
framework.toggleMenu();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
swipeStatus:function(event, phase, direction, distance, duration, fingers)
|
allScrolling: 'vertical'
|
||||||
{
|
});
|
||||||
switch (phase)
|
|
||||||
{
|
|
||||||
case "move":
|
|
||||||
//TODO: implement smooth swip
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allowPageScroll: "vertical"
|
|
||||||
});*/
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Adds an entry to the sidemenu.
|
* Adds an entry to the sidemenu.
|
||||||
|
Loading…
Reference in New Issue
Block a user