mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 16:59:59 +02:00
Animate splitview panels
This commit is contained in:
parent
6578992a11
commit
cde3c6a48b
1 changed files with 2 additions and 0 deletions
|
@ -780,6 +780,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSplitterMouseDown = (event) => {
|
handleSplitterMouseDown = (event) => {
|
||||||
|
this.tabBrowserPanel.setAttribute('zen-split-resizing', true);
|
||||||
const isVertical = event.target.getAttribute('orient') === 'vertical';
|
const isVertical = event.target.getAttribute('orient') === 'vertical';
|
||||||
const dimension = isVertical ? 'width' : 'height';
|
const dimension = isVertical ? 'width' : 'height';
|
||||||
const dimensionInParent = dimension + 'InParent';
|
const dimensionInParent = dimension + 'InParent';
|
||||||
|
@ -821,6 +822,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||||
document.addEventListener('mouseup', () => {
|
document.addEventListener('mouseup', () => {
|
||||||
document.removeEventListener('mousemove', dragFunc);
|
document.removeEventListener('mousemove', dragFunc);
|
||||||
setCursor('auto');
|
setCursor('auto');
|
||||||
|
this.tabBrowserPanel.removeAttribute('zen-split-resizing');
|
||||||
}, {once: true});
|
}, {once: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue