mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: no-bug - Fixed split view not opening a new window when dragging the tab, r=split-view
This commit is contained in:
@@ -319,6 +319,10 @@ pref("mousewheel.default.delta_multiplier_y", 200);
|
||||
pref("dom.ipc.processPriorityManager.backgroundUsesEcoQoS", false);
|
||||
#endif
|
||||
|
||||
#ifdef UNIX_BUT_NOT_MAC
|
||||
pref("widget.gtk.rounded-bottom-corners.enabled", true);
|
||||
#endif
|
||||
|
||||
pref('browser.newtabpage.activity-stream.system.showWeather', true);
|
||||
|
||||
// Enable experimental settings page (Used for Zen Labs)
|
||||
|
@@ -174,6 +174,10 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
}
|
||||
|
||||
onBrowserDragOverToSplit(event) {
|
||||
if (this.fakeBrowser) {
|
||||
this.onBrowserDragEndToSplit(event);
|
||||
return;
|
||||
}
|
||||
var dt = event.dataTransfer;
|
||||
var draggedTab;
|
||||
if (dt.mozTypesAt(0)[0] == TAB_DROP_TYPE) {
|
||||
@@ -1527,6 +1531,19 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
return false;
|
||||
}
|
||||
|
||||
// CHeck if it's inside the tabbox
|
||||
const tabboxRect = gBrowser.tabbox.getBoundingClientRect();
|
||||
const elementSeparation = ZenThemeModifier.elementSeparation;
|
||||
if (
|
||||
event.clientX < tabboxRect.left ||
|
||||
event.clientX > tabboxRect.right - elementSeparation ||
|
||||
event.clientY < tabboxRect.top ||
|
||||
event.clientY > tabboxRect.bottom - elementSeparation
|
||||
) {
|
||||
this._maybeRemoveFakeBrowser(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
const dropSide = this.fakeBrowser?.getAttribute('side');
|
||||
const containerRect = this.fakeBrowser.getBoundingClientRect();
|
||||
const padding = ZenThemeModifier.elementSeparation;
|
||||
|
Reference in New Issue
Block a user