mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 19:38:24 +00:00
fix: Fixed repetitive haptic feedback when moving tabs to the pinned section, b=closes #9803, c=tabs
This commit is contained in:
@@ -1289,8 +1289,6 @@
|
|||||||
if (pinnedTabsTarget) {
|
if (pinnedTabsTarget) {
|
||||||
if (draggedTab.hasAttribute('zen-essential')) {
|
if (draggedTab.hasAttribute('zen-essential')) {
|
||||||
shouldAddDragOverElement = true;
|
shouldAddDragOverElement = true;
|
||||||
} else if (!draggedTab.pinned) {
|
|
||||||
Services.zen.playHapticFeedback();
|
|
||||||
}
|
}
|
||||||
} else if (essentialTabsTarget) {
|
} else if (essentialTabsTarget) {
|
||||||
if (!draggedTab.hasAttribute('zen-essential') && this.canEssentialBeAdded(draggedTab)) {
|
if (!draggedTab.hasAttribute('zen-essential') && this.canEssentialBeAdded(draggedTab)) {
|
||||||
@@ -1300,8 +1298,6 @@
|
|||||||
} else if (tabsTarget) {
|
} else if (tabsTarget) {
|
||||||
if (draggedTab.hasAttribute('zen-essential')) {
|
if (draggedTab.hasAttribute('zen-essential')) {
|
||||||
shouldAddDragOverElement = true;
|
shouldAddDragOverElement = true;
|
||||||
} else if (draggedTab.pinned) {
|
|
||||||
Services.zen.playHapticFeedback();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user