mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge branch 'remove-triple-dot-button-drive-mobile' into 2025.6-test
This commit is contained in:
commit
382d10132d
3
.gitignore
vendored
3
.gitignore
vendored
@ -35,6 +35,9 @@ www/common/onlyoffice/v*
|
||||
www/common/worker.bundle.js
|
||||
_build
|
||||
|
||||
FUNDING.json
|
||||
funding.json
|
||||
|
||||
# ---> Node
|
||||
# Logs
|
||||
logs
|
||||
|
||||
@ -660,29 +660,30 @@ define([
|
||||
var $trashContextMenu = $("#cp-app-drive-context-trash");
|
||||
|
||||
$content.attr("tabindex", "0");
|
||||
var splitter = h('div.cp-splitter', [
|
||||
h('i.fa.fa-ellipsis-v')
|
||||
]);
|
||||
$contentContainer.append(splitter);
|
||||
APP.$splitter = $(splitter).on('mousedown touchstart', function (e) {
|
||||
e.preventDefault();
|
||||
var x = e.type === 'touchstart' ? e.originalEvent.touches[0].pageX : e.pageX;
|
||||
var w = $tree.width();
|
||||
|
||||
var handler = function (evt) {
|
||||
if (evt.type === 'mouseup' || evt.type === 'touchend') {
|
||||
$(window).off('mouseup mousemove touchend touchmove', handler);
|
||||
return;
|
||||
}
|
||||
var pageX = evt.type === 'touchmove'
|
||||
? evt.originalEvent.touches[0].pageX
|
||||
: evt.pageX;
|
||||
$tree.css('width', (w - x + pageX) + 'px');
|
||||
};
|
||||
$(window).off('mouseup mousemove touchend touchmove', handler, { passive: false });
|
||||
$(window).on('mouseup mousemove touchend touchmove', handler);
|
||||
});
|
||||
|
||||
if (APP.loggedIn) {
|
||||
var splitter = h('div.cp-splitter', [
|
||||
h('i.fa.fa-ellipsis-v')
|
||||
]);
|
||||
$contentContainer.append(splitter);
|
||||
APP.$splitter = $(splitter).on('mousedown touchstart', function (e) {
|
||||
e.preventDefault();
|
||||
var x = e.type === 'touchstart' ? e.originalEvent.touches[0].pageX : e.pageX;
|
||||
var w = $tree.width();
|
||||
|
||||
var handler = function (evt) {
|
||||
if (evt.type === 'mouseup' || evt.type === 'touchend') {
|
||||
$(window).off('mouseup mousemove touchend touchmove', handler);
|
||||
return;
|
||||
}
|
||||
var pageX = evt.type === 'touchmove'
|
||||
? evt.originalEvent.touches[0].pageX
|
||||
: evt.pageX;
|
||||
$tree.css('width', (w - x + pageX) + 'px');
|
||||
};
|
||||
$(window).off('mouseup mousemove touchend touchmove', handler, { passive: false });
|
||||
$(window).on('mouseup mousemove touchend touchmove', handler);
|
||||
});
|
||||
}
|
||||
// TOOLBAR
|
||||
|
||||
// DRIVE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user