W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] Drag and drop: bugged implementation of setting drag feedback with setDragImage?

From: Rafał Miłecki <zajec5@gmail.com>
Date: Thu, 29 Sep 2011 21:07:17 +0200
Message-ID: <CACna6rwmRpBCSWCO2hiY27iX90Cpz0w1DkT3QC2XGi+6yCFFWw@mail.gmail.com>
W dniu 29 wrze?nia 2011 20:46 u?ytkownik Rafa? Mi?ecki
<zajec5 at gmail.com> napisa?:
> I've a question regarding setDragImage. I've implemented "dragstart"
> event handler in the following way:
>
> event.setDragImage(this, 0, 0);
> this.style.background = 'yellow';
>
> What do I expect:
> 1) Origin element to have yellow background
> 2) Drag feedback element (the one under cursor) to have original background
>
> Are my expectations correct? Because Webkit and Gecko implementation
> doesn't match it. In their cases both elements have modified
> background. It seems that both engines delay setting drag image until
> the end of event handler.
>
> I'll provide testcase in a moment.

See the attachment.

One more bug: under Linux in webkit (Chrome) there is not drag
feedback image at all. Not sure about Mac.

-- 
Rafa?
Received on Thursday, 29 September 2011 12:07:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC