mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Fix inconsistent cursor when resizing P2 (#2916)
* Update ZenViewSplitter.mjs Signed-off-by: Jai A P <jai.jap.318@gmail.com> * Update ZenSidebarManager.mjs Signed-off-by: Jai A P <jai.jap.318@gmail.com> --------- Signed-off-by: Jai A P <jai.jap.318@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ class ZenBrowserManagerSidebar extends ZenDOMOperatedFeature {
|
||||
this._isDragging = true;
|
||||
|
||||
const isHorizontal = mouseDownEvent.target.getAttribute('orient') === 'horizontal';
|
||||
setCursor(isHorizontal ? 'n-resize' : 'ew-resize');
|
||||
setCursor(isHorizontal ? 'ns-resize' : 'ew-resize');
|
||||
const reverse = ['left', 'top'].includes(mouseDownEvent.target.getAttribute('side'));
|
||||
const direction = isHorizontal ? 'height' : 'width';
|
||||
const axis = isHorizontal ? 'Y' : 'X';
|
||||
|
@@ -953,7 +953,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
});
|
||||
}
|
||||
|
||||
setCursor(isVertical ? 'ew-resize' : 'n-resize');
|
||||
setCursor(isVertical ? 'ew-resize' : 'ns-resize');
|
||||
document.addEventListener('mousemove', dragFunc);
|
||||
document.addEventListener('mouseup', () => {
|
||||
document.removeEventListener('mousemove', dragFunc);
|
||||
|
Reference in New Issue
Block a user