[Pkg-mozext-commits] [tabmixplus] 15/22: Follow up bug 1345473 - Set tab as drag source

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:28:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 0.5.0.4pre.170625a1
in repository tabmixplus.

commit a3727f3d1391a6be7ab8dc29c0aec3343f40bdab
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Jun 19 18:20:21 2017 +0300

    Follow up bug 1345473 - Set tab as drag source
---
 chrome/content/minit/minit.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 8ba0665..5bc8a9f 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -178,6 +178,12 @@ var TMP_tabDNDObserver = {
     // Set the cursor to an arrow during tab drags.
     dt.mozCursor = "default";
 
+    if (Tabmix.isVersion(550)) {
+      // Set the tab as the source of the drag, which ensures we have a stable
+      // node to deliver the `dragend` event.  See bug 1345473.
+      dt.addElement(tab);
+    }
+
     // Create a canvas to which we capture the current tab.
     // Until canvas is HiDPI-aware (bug 780362), we need to scale the desired
     // canvas size (in CSS pixels) to the window's backing resolution in order

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list