Allow to drop non-tab data correctly (regression)
This commit is contained in:
parent
112edbf3cd
commit
49b0aa9f99
@ -18,7 +18,7 @@
|
|||||||
https://github.com/clear-code/js-extended-immutable
|
https://github.com/clear-code/js-extended-immutable
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function() {
|
||||||
const currentRevision = 38;
|
const currentRevision = 39;
|
||||||
|
|
||||||
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
||||||
|
|
||||||
@ -151,7 +151,10 @@
|
|||||||
!aObserver.__tabsDragUtils__getDropEffectForTabDrag) {
|
!aObserver.__tabsDragUtils__getDropEffectForTabDrag) {
|
||||||
aObserver.__tabsDragUtils__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
|
aObserver.__tabsDragUtils__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
|
||||||
aObserver._getDropEffectForTabDrag = function(aEvent, ...aArgs) {
|
aObserver._getDropEffectForTabDrag = function(aEvent, ...aArgs) {
|
||||||
var fakeItemCount = window["piro.sakura.ne.jp"].tabsDragUtils.isTabsDragging(aEvent) ? 1 : null ;
|
if (!window["piro.sakura.ne.jp"].tabsDragUtils.isTabsDragging(aEvent))
|
||||||
|
return aEvent;
|
||||||
|
|
||||||
|
var fakeItemCount = 1;
|
||||||
var fakeDataTransfer = new ExtendedImmutable(aEvent.dataTransfer, {
|
var fakeDataTransfer = new ExtendedImmutable(aEvent.dataTransfer, {
|
||||||
get mozItemCount() {
|
get mozItemCount() {
|
||||||
if (fakeItemCount) {
|
if (fakeItemCount) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user