mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Fix tab drag indicator orientation to horizontal on collapsed toolbar (#9126)
This commit is contained in:
@@ -857,7 +857,7 @@
|
||||
const rect = targetTab.getBoundingClientRect();
|
||||
let newIndex = targetTab._tPos;
|
||||
|
||||
if (isVertical) {
|
||||
if (isVertical || !this.expandedSidebarMode) {
|
||||
const middleY = targetTab.screenY + rect.height / 2;
|
||||
if (!isRegularTabs && event.screenY > middleY) {
|
||||
newIndex++;
|
||||
@@ -1046,7 +1046,7 @@
|
||||
// Calculate middle to decide 'before' or 'after'
|
||||
const rect = targetTab.getBoundingClientRect();
|
||||
let shouldPlayHapticFeedback = false;
|
||||
if (isVertical) {
|
||||
if (isVertical || !this.expandedSidebarMode) {
|
||||
const separation = 8;
|
||||
const middleY = targetTab.screenY + rect.height / 2;
|
||||
const indicator = this.dragIndicator;
|
||||
|
Reference in New Issue
Block a user