fix: Fix tab drag indicator orientation to horizontal on collapsed toolbar (#9126)

This commit is contained in:
Shinwoo PARK
2025-06-23 00:07:36 +09:00
committed by GitHub
parent 48f036d6a0
commit dc6f46695a

View File

@@ -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;