1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update nav drawer

This commit is contained in:
Luke Pulverenti 2016-06-21 12:38:29 -04:00
parent f9b4288b08
commit 61b625bbdb
6 changed files with 171 additions and 218 deletions

View file

@ -48,11 +48,11 @@
options.target.style.left = -options.width + 'px';
if (!options.disableEdgeSwipe) {
var handle = document.createElement('div');
handle.className = "tmla-handle";
handle.style.width = options.handleSize + 'px';
handle.style.right = -options.handleSize + 'px';
options.target.appendChild(handle);
//var handle = document.createElement('div');
//handle.className = "tmla-handle";
//handle.style.width = options.handleSize + 'px';
//handle.style.right = -options.handleSize + 'px';
//options.target.appendChild(handle);
}
if (!options.disableMask) {
@ -71,6 +71,7 @@
TouchMenuLA.prototype.touchStartMenu = function () {
menuHammer.on('panstart', function (ev) {
options.target.classList.remove('transition');
options.target.classList.add('open');
velocity = Math.abs(ev.velocity);
});
menuHammer.on('panmove', function (ev) {