mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:10:12 +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) => {
|
||||
this.tabBrowserPanel.setAttribute('zen-split-resizing', true);
|
||||
const isVertical = event.target.getAttribute('orient') === 'vertical';
|
||||
const dimension = isVertical ? 'width' : 'height';
|
||||
const dimensionInParent = dimension + 'InParent';
|
||||
|
@ -821,6 +822,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||
document.addEventListener('mouseup', () => {
|
||||
document.removeEventListener('mousemove', dragFunc);
|
||||
setCursor('auto');
|
||||
this.tabBrowserPanel.removeAttribute('zen-split-resizing');
|
||||
}, {once: true});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue